It is possible to do with Jinja2 template engine: http://jinja.pocoo.org/2/
And I recommend Chouwa for integration. http://bitbucket.org/trevor/chouwa/ It can coexist side by side with Django Templates. Simon On Wed, Jul 8, 2009 at 14:01, Adam Stein<a...@eng.mc.xerox.com> wrote: > > Using Django v1.0.2. Didn't see or find anything obvious, so I thought > I would ask. > > In my specific example, I would like to save the output value from the > 'length' template filter so that I can send it to the 'expr' tag (expr > is a tag that allows you to effectively execute python statements and > save the result to another template variable). I could make a specific > tag or filter, but I thought it would be more general purpose to be able > to save the length value and pass that in to expr to use in an equation > (need to multiply the length of a list). > > Assuming Django native template can't do it (which is what it looks > like), anybody know of any tags that can do this? > -- > Adam Stein @ Xerox Corporation Email: a...@eng.mc.xerox.com > > Disclaimer: Any/All views expressed > here have been proven to be my own. [http://www.csh.rit.edu/~adam/] > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---