{% if node.content %}{% with level=node.attrs.level %} {% for item in node.content %} {% with template="./"|add:item.type|lower|add:".html" %} {% include template with node=item %} {% endwith %} {% endfor %} {% endwith %}{% endif %}