Questions

2 views
Skip to first unread message

Ram Rachum

unread,
Jan 24, 2014, 7:29:58 AM1/24/14
to shp...@googlegroups.com
Hi guys,

I'm trying to learn to use Shpaml better.

Look at this line:

    > meta name='keywords' content="{% block keywords %}{% endblock keywords %}"

Is there a way to use Django tags in the Shpaml way here?

Another question:

The documentation says "You can leave quotes off attribute values when the name and value are single words." Does that apply to type="text/javascript"?


Thanks,
Ram.

Ram Rachum

unread,
Jan 24, 2014, 7:36:50 AM1/24/14
to shp...@googlegroups.com
Also, can I write:

    form action=.

Instead of 

    form action='.'

?

Steve Howell

unread,
Jan 24, 2014, 7:40:12 AM1/24/14
to shp...@googlegroups.com
Hi Ram.  I don't know the answers to your two questions off of the top of my head, but I encourage you to just try running your examples through the preprocessor and see what happens, at least as a starting point.  For the first question, shpaml generally tries to be transparent about letting Django tags go through verbatim, so that Django can process them, but I don't know if there is an exception in this particular case.


--
You received this message because you are subscribed to the Google Groups "shpaml" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shpaml+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


James Robert

unread,
Jan 24, 2014, 3:20:00 PM1/24/14
to shp...@googlegroups.com
I believe quotes are only necessary when the content has spaces, though I always use them (to eliminate uncertainty).

Django tags should pass through unchanged.

I'll second Steve's advice to just try it out and see what happens. Usually it'll do what you expect, but it's always good to make sure.

James

Ram Rachum

unread,
Jan 24, 2014, 6:46:35 PM1/24/14
to shp...@googlegroups.com
Hey guys,

Regarding type=text/javascript , I tried it and it worked :) So that's solved.

But regarding improving on this: 

    > meta name='keywords' content="{% block keywords %}{% endblock keywords %}"

I wouldn't know what to try. Do you know whether it's possible to use Shpaml Django tags here, and how?


You received this message because you are subscribed to a topic in the Google Groups "shpaml" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/shpaml/sTQFKBpC9mE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to shpaml+un...@googlegroups.com.

James Robert

unread,
Jan 24, 2014, 6:53:48 PM1/24/14
to shp...@googlegroups.com
My understanding is that it should work. What is the output?

Ram Rachum

unread,
Jan 24, 2014, 6:59:16 PM1/24/14
to shp...@googlegroups.com
Oh, that's not the issue, I also think it'll work. I'm asking if there's something that sucks less than that. (i.e. uses Shpaml syntax to shorten the code.)

Ram Rachum

unread,
Jan 27, 2014, 5:10:24 AM1/27/14
to shp...@googlegroups.com
From the lack of response I'm assuming there isn't a nicer way to write this: 

    > meta name='keywords' content="{% block keywords %}{% endblock keywords %}"

Just had to check.
To unsubscribe from this group and stop receiving emails from it, send an email to shpaml+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "shpaml" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shpaml+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to a topic in the Google Groups "shpaml" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/shpaml/sTQFKBpC9mE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to shpaml+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "shpaml" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shpaml+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to a topic in the Google Groups "shpaml" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/shpaml/sTQFKBpC9mE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to shpaml+unsubscribe@googlegroups.com.

James Robert

unread,
Jan 28, 2014, 8:34:49 PM1/28/14
to shp...@googlegroups.com
Not that I know of, sorry

To unsubscribe from this group and stop receiving emails from it, send an email to shpaml+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages