On Sat, 2009-03-07 at 18:54 -0800, only wrote: > Is it possible to use variable attributes in templates, something like > the following (which does not work of course), where form is a > dictionary and attribs is a list of attribute strings? > > {% for attrib in attribs %} > {{attrib}}: {{form}}.{{attrib}} > {% endfor %}
No, not without writing your own template tag or (probably better) filter to perform the lookup. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---