diff options
| author | Preston Timmons <prestontimmons@gmail.com> | 2015-03-31 21:57:26 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-04-01 13:02:19 -0400 |
| commit | 0808ccce3808235c5b5a56e3f689cec0d4bc0ebf (patch) | |
| tree | 9c280da7642dd82962588de096c3de2376d6eb8f /tests/template_tests/templates/inclusion_base.html | |
| parent | 4ea1909d3c420ba1fbdbf7221cad518d43aef885 (diff) | |
Fixed #23441, #24555 -- Improved the behavior of InclusionNode.
This change:
* Makes the InclusionNode cache-safe by removing render-time side effects
to its nodelist.
* Ensures the render_context stack is properly scoped and reset by updating
the render call to use Template.render rather than Nodelist.render.
Diffstat (limited to 'tests/template_tests/templates/inclusion_base.html')
| -rw-r--r-- | tests/template_tests/templates/inclusion_base.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/template_tests/templates/inclusion_base.html b/tests/template_tests/templates/inclusion_base.html new file mode 100644 index 0000000000..795c4dad32 --- /dev/null +++ b/tests/template_tests/templates/inclusion_base.html @@ -0,0 +1 @@ +{% block content %}base{% endblock %} |
