{% for position, modules in modules.items() %}
{# Check if we have more than one module for this position,
and if so use a carousel to show all in one place #}
{% if modules | length > 1 %}
{% for module in modules %}
{% endfor %}
{% for module in modules %}
{% include "modules/" + module.type + ".html" ignore missing %}
{# TODO Find a better condition - pure JS/CSS modules don't need ajax here #}
{% if module.type != "clock" %}
{% include "ajax.html" %}
{% endif %}
{% endfor %}
{% else %}
{% for module in modules %}
{% include "modules/" + module.type + ".html" ignore missing %}
{# TODO Find a better condition - pure JS/CSS modules don't need ajax here #}
{% if module.type != "clock" %}
{% include "ajax.html" %}
{% endif %}