djLint/tests/source_django/recursive_include.html
2021-12-14 09:57:37 +01:00

7 lines
204 B
HTML

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