Hi,
Eric wrote:
> It appears that included templates ({% include 'my/include/
> template.html' %}) don't support inheritance. Is there any plan on
> supporting this?
For Jinja1 that is currently technically impossible and won't change.
That limitation was however fixed in the upcoming Jinja2 version which
also supports dynamic inheritance.
There are some small incompatibilities and it's not yet released, but you
may be interested in it. A list of changes over Jinja1 will be available
soon.
http://jinja.pocoo.org/2/
Alternatively `rendertemplate` exists as global function in Jinja1 which
can load a template and renders it with the current context::
{{ rendertemplate('foo.html') }}
That template can use inheritance then.
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
-~----------~----~----~----~------~----~------~--~---