Hi, On Jul 26, 3:41 am, alec resnick <[email protected]> wrote: > Hi! I was wondering if there was an easy way to access the variables > exported by a template. I see exported_vars [1] in the documentation, > but I can't seem to figure out how to access the context of a loaded > template. ronny on #pocoo suggested that I can mess with the AST/ > parser, but I'm not exactly clear on where to start [2]. Yes, one would have to use the AST for that. However because Jinja2 needs to know which variables have to be looked up from the context when the template is rendered, it would make sense to provide a utility function that does exactly that. I could probably implement that for the next Jinja2 version which should be released soon anyway.
Regards, Armin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pocoo-libs" 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/pocoo-libs?hl=en -~----------~----~----~----~------~----~------~--~---
