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 %}
<tr><td>a[0]</td><td>a[1]</td></tr>
{% endfor %}
but i received this error:
Could not parse the remainder: '[0]' from 'a[0]'
any thoughts or suggestions?
thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---