Hi,

nidi wrote:
> Hi there, is there any way to get Jinja to tell which Templates are
> actually used (inherited / included recursively) while rendering a
> certain Template? This could be some sort of fake rendering which does
> not return a string but a list / dictionary / tree of template names.
In Jinja1 this would be possible as dynamic inheritance is not available, 
in Jinja2 it would only work if you are not using dynamic inheritance.

In both versions the way to go is the Jinja AST, however the AST is only a 
supported feature in Jinja2.  See the extension documentation[1] for more 
details.

Regards,
Armin

[1]: http://jinja.pocoo.org/2/documentation/extensions

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

Reply via email to