#7817: {% with foo as x, bar as y %}, {% include "tpl" with foo as x, bar as y
%}
-----------------------------+----------------------------------------------
Reporter: emulbreh | Owner: nobody
Status: new | Milestone:
Component: Template system | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 0 |
-----------------------------+----------------------------------------------
This is a simple but useful syntax extension. The separator could also be
"and": `{% with foo as x and bar as y %}`.
`{% include "tpl" with foo as x %}` would be equivalent to `{% with foo as
x %}{% include "tpl"%}{% endwith %}`, which is more transparent that a
trivial inclusion_tag.
Use a common parser for include, with and possibly blocktrans.
--
Ticket URL: <http://code.djangoproject.com/ticket/7817>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---