django1/tests/template_tests/templates/recursive_include.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 %}