#24425: Cross Backend template includes are not supported
---------------------------------+----------------------
Reporter: phalt | Owner: nobody
Type: Bug | Status: new
Component: Template system | Version: 1.8beta1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+----------------------
Attempting to render Jinja templates with an include tag in a Django
template results in the Django template backend parsing the jinja
template.
For example:
templates/django.html:
{{{
Django Template!
{% include 'include.jinja' %}
}}}
jinja2/include.jinja:
{{{
Jinja Template!
{% set jinja = 1 %}
}}}
Will cause a template rendering error as `set` is not a valid tag in
Django templates.
This used to work fine as the `SsiNode` that powers the include tag would
search using all configured loaders but since 1.8 it has changed to
maintain the current engine context.
This seems like an obvious behaviour to want and we've relied on it
heavily while porting our templates from Django to Jinja2 but this is now
blocked by this change in 1.8.
--
Ticket URL: <https://code.djangoproject.com/ticket/24425>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/048.e1197c460ce9b3631fbc054a4d9540fe%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.