zhammer / scribly

write stories together
https://scribly.ink
MIT License
2 stars 0 forks source link

Starlette message flashing #68

Closed zhammer closed 3 years ago

zhammer commented 4 years ago

Something like in flask https://flask.palletsprojects.com/en/1.1.x/patterns/flashing/

I wonder if a way to do this have a key in the session that is an object with a list of messages, each one has a key with “displayed” bool and a payload (that itself can be a dict with message and type, like error, etc)

Would want to figure out how to make notifications accessible (if they’re not on the main page)