<!doctype html>
<title>My Application</title>
{% with messages = get_flashed_messages() %}
  {% if messages %}
    {% for message in messages %}
      <span style="color: red;">{{ message }}</span>
    {% endfor %}
  {% endif %}
{% endwith %}
{% block body %}{% endblock %}