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: TemplateS
{% 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?
--
2 matches
Mail list logo