From e2f06226ea4a38377cdb69f2f5768e4e00c2d88e Mon Sep 17 00:00:00 2001 From: Curtis Maloney Date: Thu, 29 Aug 2013 18:58:56 +1000 Subject: 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 --- tests/template_tests/templates/recursive_include.html | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/template_tests/templates/recursive_include.html (limited to 'tests/template_tests/templates/recursive_include.html') diff --git a/tests/template_tests/templates/recursive_include.html b/tests/template_tests/templates/recursive_include.html new file mode 100644 index 0000000000..dc848f32af --- /dev/null +++ b/tests/template_tests/templates/recursive_include.html @@ -0,0 +1,7 @@ +Recursion! +{% for comment in comments %} + {{ comment.comment }} + {% if comment.children %} + {% include "recursive_include.html" with comments=comment.children %} + {% endif %} +{% endfor %} -- cgit v1.3