{% if item.type == 'folder' %}
  • {{ item.name }} {{ item.children.count }}
    {% for child in item.children.list %} {% with item=child %} {% endwith %} {% endfor %}
  • {% else %} {% endif %}