{% with messages=get_flashed_messages() %}{% for m in messages %}

{{m}}

{% endfor %}{% endwith %}{% block body %}{% endblock %}