Expand description
Server-rendered HTML user interface.
Conventions:
- every page handler takes a
WebCtx(current user + flash message); - state changing requests are
POSTforms followed by a redirect (post/redirect/get) that carries a flash message in a short-lived cookie; - user errors (validation, conflicts, permissions) of actions redirect back with an error flash, internal errors render the error page.
Structs§
- Flash
- WebCtx
- The signed-in user plus a pending flash message and the number of unread notifications (bell in the header).