Re: how to iterate list of list using template language

2009-03-18 Thread Alex Gaynor
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] > {%

how to iterate list of list using template language

2009-03-18 Thread ihome
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