{% macro link(endpoint, name) %} {% if request.endpoint.endswith(endpoint) %} {% else %} {% endif %} {% endmacro %} {% macro dropdown(name) %} {% endmacro %} {% macro dropdown_link(endpoint, name) %} {% if request.endpoint.endswith(endpoint) %} {{ name|safe }} {% else %} {{ name|safe }} {% endif %} {% endmacro %}