{% if country_sites %} {% for country, sites in country_sites.items %} {{ country }}: {% for site in sites %} -{{ site }} {% endfor %} {% endfor %} {% else %} Sites not defined! {% endif %}