mirror of
https://github.com/django/django.git
synced 2024-11-29 22:56:46 +01:00
e2f06226ea
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
8 lines
204 B
HTML
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 %}
|