diff options
| author | Curtis Maloney <curtis@tinbrain.net> | 2013-08-29 18:58:56 +1000 |
|---|---|---|
| committer | Anssi Kääriäinen <akaariai@gmail.com> | 2013-08-30 10:36:36 +0300 |
| commit | e2f06226ea4a38377cdb69f2f5768e4e00c2d88e (patch) | |
| tree | 12f71ff4a4867e279722ecf25db1ef09e60ff29e /tests/template_tests/templates/recursive_include.html | |
| parent | e973ee6a9879969b8ae05bb7ff681172cc5386a5 (diff) | |
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
Diffstat (limited to 'tests/template_tests/templates/recursive_include.html')
| -rw-r--r-- | tests/template_tests/templates/recursive_include.html | 7 |
1 files changed, 7 insertions, 0 deletions
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 %} |
