{% for resource in res %}
{% for virtualhost in resource['virtual_hosts'] %}
{% if loop.first and loop.last %}
{# A single virtualhost makes no sense to render. It will be in one of the routes above. #}
{% else %}
{% if loop.first %}
Route configuration: "{{ resource.get('name') }}" ({{ resource['virtual_hosts']|length }} resources)