Sorry for the push but can anyone drop me some hints or links?

I do: print tmpl.render({"playlist": playlist})

Well playlist is a dictionary containing the tag-value pairs, parsed
from the corresponding YAML file. In the template i want to itterate
over a list of allowed tags and if the tag is present in the context,
print it. What would be the best way to do this with Djangos template
system?

Because i found no way, how i could access the variables from the
template (well locals() shows them, dir() too, but i could'nt access
them) i wrapped them in a second dict with "playlist": playlist, so i
could do "if tag in playlist" and "playlist[tag]".


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to