{% for key, val in dict.items %} {% if val.items %}
  • {{key}}: {% with dict=val template="nested_dict.html" %} {% include template %} {% endwith %}
  • {% else %}
  • {{key}}: {{val}}
  • {% endif %} {% endfor %}