0
0
mirror of https://github.com/django/django.git synced 2024-11-29 22:56:46 +01:00
django/tests/template_tests/templates/recursive_include.html
Curtis Maloney e2f06226ea 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
2013-08-30 10:36:36 +03:00

8 lines
204 B
HTML

Recursion!
{% for comment in comments %}
{{ comment.comment }}
{% if comment.children %}
{% include "recursive_include.html" with comments=comment.children %}
{% endif %}
{% endfor %}