{% macro render_nav_item(endpoint, text, _badge='', _use_li=False) %} {% set active = True if request.endpoint and request.endpoint == endpoint else False %} {% if _use_li %}{% endif %} {% endmacro %} {% macro render_breadcrumb_item(endpoint, text) %} {% set active = True if request.endpoint and request.endpoint == endpoint else False %} {% endmacro %}