Hi, I am trying to perform a dictionary lookup within a template, and have got stuck. I pass a list( dirList ) and a dict ( thumbNames ) to render_to_response. Within the template I process the list, and print each occurence of dirList. What I would like to do, is display an entry of thumbNames based on the value of dirName. Something like:
{% for dirName in dirList %} {{ dirName }} - {{ thumbNames.{{ dirName }} }} {% endfor %} Is there a way of implementing something like this? I'd appreciate any pointers. Regards J