On Wed, Mar 18, 2009 at 2:03 PM, ihome wrote:
>
> hi,
>
> i pass in one list of list into my template and want to iterate the
> list in template language. for example, list1 = [ [1,2], [3,4] ]
>
> initially i thought of using:
>
> {% for a in list1 %}
> a[0]a[1]
> {%
hi,
i pass in one list of list into my template and want to iterate the
list in template language. for example, list1 = [ [1,2], [3,4] ]
initially i thought of using:
{% for a in list1 %}
a[0]a[1]
{% endfor %}
but i received this error:
Could not parse the remainder: '[0]' from 'a[0]'
any
2 matches
Mail list logo