> You can do this of course but it does not help to make sense of the
> template. E.g.
>
> {% for key,value in L %}
>   {{ key }}->{{ value }}
> {% endfor %}

Yes, however you're looking at the case of only two variables. Think
of how unmanageable it will start to look like this:
{% for name,description,value,href in L %}...

It is better to get a dict back from the view instead of creating one
in the template.

 -rob


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to