Skip to content

Flash messages

Flask provides a mechanism for showing one time messages to the user.

Use flash() or page.flash() as described by Flask documentation.

---
page.flash("Welcome to my page!", "success")
---
{% use_layout %}
Hello

Hyperflask will automatically print the messages as alert messages in a toast. This will also work when flashing messages during ajax requests.