{% with Notif = get_flashed_messages() %}
{% if Notif %}
{% for NotifText in Notif %}
{% endfor %}
{% endif %}
{% endwith %}
{% with errors = get_flashed_messages(category_filter=["error"]) %}
{% if errors %}
{%- for NotifText in errors %}
{% endfor -%}
{% endif %}
{% endwith %}
{% with info = get_flashed_messages(category_filter=["info"]) %}
{% if info %}
{%- for NotifText in info %}
{% endfor -%}
{% endif %}
{% endwith %}
{% with success = get_flashed_messages(category_filter=["success"]) %}
{% if success %}
{%- for NotifText in success %}
{% endfor -%}
{% endif %}
{% endwith %}
{% with notice = get_flashed_messages(category_filter=["notice"]) %}
{% if notice %}
{%- for NotifText in notice %}
{% endfor -%}
{% endif %}
{% endwith %}