Flash Messages / Toasts

Server-set messages that render via {{.lvt.FlashTag "key"}} as <output role="…" data-flash="…">. On WebSocket connections flash persists across renders until cleared with ctx.ClearFlash(key) or auto-pruned via FlashExpiry(d). On HTTP it's inherently one-shot.

Try: Submit empty → persistent error. Type a name + Save → success that auto-dismisses after 5s (a server-side goroutine fires session.TriggerAction("refresh", nil) at the deadline; the resulting render's getMessages prunes the expired flash). Click Notify → persistent info until you click Dismiss.