>From the docs; "Variable names must consist of any letter (A-Z), any digit (0-9), an underscore or a dot."
http://docs.djangoproject.com/en/dev/ref/templates/api/#rendering-a-context I suppose you could write a template tag to handle it or something. Not sure. Dougal --- Dougal Matthews - @d0ugal http://www.dougalmatthews.com/ 2009/5/10 Danne <pingvingr...@gmail.com> > > I'm using the Tumblr (http://www.tumblr.com) REST Api, and keys in > returned json contains the character "-", like "post": {"regular- > title": "asdf" .....}. I'm having trouble printing this in the django > templates since regular-title is an invalid variable name. I've tried > stuff like: post["regular-title"], post[regular-title], post.regular- > title and so on, and searched around the docs and mailing lists, but > haven't found any answers. > > Is there a way to print template variables with "-" in their names? > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---