{# templates/macros.html #} {% macro nav_link(endpoint, text) %} {% if request.endpoint.endswith(endpoint) %}
  • {{text}}
  • {% else %}
  • {{text}}
  • {% endif %} {% endmacro %}