Created
February 14, 2012 21:55
-
-
Save Miserlou/1830843 to your computer and use it in GitHub Desktop.
Django Dictionary
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
{% for key, value in dictionary.items %} | |
<li><a href="{{key}}">{{value}}</a></li> | |
{% endfor %} | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What if the list elements are also lists and one wants to parse on the elements of the list(which itself is element of the parent list)
for example,
a=[[1,2],[3,4]]
how do i parse over [1,2] ?