{% set msgs = get_flashed_messages(with_categories=true) %} {% if msgs %} {% for cat,msg in msgs %}
{{msg}}
{% endfor %} {% endif %}