{% macro active(page) %} {% if page == request.endpoint %} active {% endif %} {% endmacro %} {# FIXME #} {% macro active_subsite(page) %} {% if page in request.endpoint %} active {% endif %} {% endmacro %} {% macro render_nav_dropdown(head, dropdowns) %} {% set dropdown = head[1] + '-dropdown' %} {% endmacro %} {% macro render_nav_item(title, url) %} {% endmacro %} {% macro render_alerts() %} {% with messages = get_flashed_messages(with_categories=True) %} {% if messages %} {% for category, message in messages %} {% endfor %} {% endif %} {% endwith %} {% endmacro %}