{% for key,value in directory_tree.items %}
  • {% if value %} {{ key }} {% with template_name="templated_emails/directory.html" path=path|add:"/"|add:key %} {% include template_name with directory_tree=value path=path %} {% endwith %} {% else %} {% with path|add:"/"|add:key as path %} {{ key }} {% endwith %} {% endif %}
  • {% endfor %}