Re: Dictionary keys in templates

2005-11-09 Thread Adrian Holovaty
On 11/9/05, Kevin <[EMAIL PROTECTED]> wrote: > Is there a reason you can't do this: > > {% for items in dictionary.items %} > ... be able to use {{ items.0 }} and "{{ items.1 }}"... > {% endfor %} > > this is equivalent to the python: > for key, value in dictionary.items() That should work, exact

Re: Dictionary keys in templates

2005-11-09 Thread Kevin
Is there a reason you can't do this: {% for items in dictionary.items %} ... be able to use {{ items.0 }} and "{{ items.1 }}"... {% endfor %} this is equivalent to the python: for key, value in dictionary.items() but since for loops in the template language can only create one variable, you nee