{% for dict_cookie in l_elem %} {% if loop.index0 % 4 == 0 %}
{% endif %}
{{dict_cookie['data']}}
{% if loop.index0 % 4 == 3 %}
{% endif %} {% endfor %} {% if l_elem|length % 4 != 0 %} {% endif %}