{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{% if category=="error" %}{% endif %} {% if category=="warning" %}{% endif %} {% if category=="ok" %}{% endif %} {% if category=="info" %}{% endif %} {{ message }}
{% endfor %} {% endif %} {% endwith %}