{% set active = namespace(filters=[]) %} {% for f in filter_config %} {% if f.filter_type != 'hidden' and f.current_value and f.current_value != f.default_value %} {% set active.filters = active.filters + [f] %} {% endif %} {% endfor %}