1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Improved {% include %} implementation

Merged BaseIncludeNode, ConstantIncludeNode and Include node.

This avoids raising TemplateDoesNotExist at parsing time, allows recursion
when passing a literal template name, and should make TEMPLATE_DEBUG behavior
consistant.

Thanks loic84 for help with the tests.

Fixed #3544, fixed #12064, fixed #16147
This commit is contained in:
Curtis Maloney
2013-08-29 18:58:56 +10:00
committed by Anssi Kääriäinen
parent e973ee6a98
commit e2f06226ea
4 changed files with 56 additions and 38 deletions

View File

@@ -263,6 +263,8 @@ Templates
arguments will be looked up using
:func:`~django.template.loader.get_template` as always.
* It is now possible to :ttag:`include` templates recursively.
Backwards incompatible changes in 1.7
=====================================