1 2 3 4
{% for domain in domains %} {{ domain.name }} {% for sub in domain.sub %} {{ sub }}.{{ domain.name }}{% endfor %} {% endfor %}