Re: template and array like template variable access

2007-10-17 Thread jake elliott
hi johnny, you can use dot syntax for indices also, ie: {{ a_tup.0 }} {{ a_tup.1 }} -jake On Wed, 2007-10-17 at 08:20 -0700, johnny wrote: > > {% for a_tup in rs %} > > {{ a_tup[0] }}/ >{{ a_tup[1] > > {% endfor %} > > Exception Type:

template and array like template variable access

2007-10-17 Thread johnny
{% for a_tup in rs %} {{ a_tup[0] }}/ {{ a_tup[1] {% endfor %} Exception Type: TemplateSyntaxError Exception Value:Could not parse the remainder: '[0]' from 'a_tup[0]' Only way to do this is to have nested for loop inside template?