Hi all,

in my templates I often use combinations of "with...as" and "include"
for modularization of HTML building blocks, like so:

{% with "save" as label %}{% include "components/button.html" %}{%
endwith %}

however, this is a bit cumbersome if used frequently or if multiple
variables must be set using nested "with...as" blocks. Wouldn't it
make sense to support a syntax like

{% include "components/button.html" with "save" as label, foo as bar
%}

to support modularization of templates? Or is there another technique
to do things like that in a readable and straightforward way? I
wouldn't want to write a custom template tag for things that only
concern presentation and can be done entirely in the template
language.

Regards,

Flo

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

Reply via email to