{% set taxlist = taxonomylist.get() %} {% if taxlist %} {% for tax,value in taxlist[taxonomy] %} {% set active = uri.param(taxonomy) == tax ? 'active' : '' %} {{ tax }} {% endfor %} {% endif %}