On Apr 20, 9:44 am, Frank Peterson <[EMAIL PROTECTED]> wrote:
> {% block {{story.title}} %}{% endblock %}
>
> Maybe my question should be can i add a varible inside {% %} ?

Yes and no. {% block .. %} is a tag, and tags can be written to
understand and resolve variables as arguments. However, I am pretty
sure that "block" is pretty special and also does not support
resolving a variable instead of the name of a block in the template
hierachy.

You can see how this would be declared if you were writing your own
templatetags at: 
http://www.djangoproject.com/documentation/templates_python/#passing-template-variables-to-the-tag
(in that case the variable is just inline without '{{ }}' because that
templatetag expects variables to be unquoted.





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to