{% set used_columns = [0] %} {% for widget_name, widget in config['widgets'].items() %} {% if used_columns[0] % 12 == 0 %}
{% endif %}
{% with properties=widget %} {% include 'widgets/' + widget_name + '.html' %} {% endwith %}
{# increment counter #} {% if used_columns.append(used_columns.pop() + widget['columns']) %}{% endif %} {% if used_columns[0] % 12 == 0 %}
{% endif %} {% endfor %}