diff --git a/controller.rst b/controller.rst index 48668f8ae85..33c6e7b91e8 100644 --- a/controller.rst +++ b/controller.rst @@ -546,7 +546,16 @@ read any flash messages from the session using ``app.flashes()``: {% endfor %} - {# ...or you can read and display every flash message available #} + {# ...or you can read and display every flash message available for given labels #} + {% for label, messages in app.flashes(['success', 'warning']) %} + {% for message in messages %} +