{% set section = namespace(section='') %} {% for set in settings %} {% if section.section|string() != set.section|string() %} {% endif %} {% set section.section = set.section %} {% endfor %}

{{ set.section[0]|upper}}{{set.section[1:] }} section