I went the hideous route, but tried to make it general enough I could reuse. I'm still on .96, but it shouldn't be too much trouble to make it work with 1.0.
In [2]: template.Template("{% load kwtag %}{% do_kwtagtest foo foo=bar %}").render(template.Context()) Out[2]: "['foo']<hr>{'foo': 'bar'}" In [6]: template.Template("{% load kwtag %}{% do_kwtagtest foo foo=bar %}").render(template.Context({'foo':'blue'})) Out[6]: "['blue']<hr>{'foo': 'bar'}" In [7]: template.Template("{% load kwtag %}{% do_kwtagtest foo foo=bar %}").render(template.Context({'foo':'blue','bar':'brown'})) Out[7]: "['blue']<hr>{'foo': 'brown'}" The parsing is not perfect, but it's usable for most simple stuff I needed to do with it. Might be of some use. http://dpaste.com/111554/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---