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.
To automatically remove the alerts added during htmx requests after some time, set flash_toast_remove_after: 5s in your config.yml.