Toasts & dialog
The server returns DOM commands, so toasts and dialogs appear with no client code.
Read the docs →.phlo
// the server speaks DOM: toasts and dialogs need no client code
route async POST contact save {
contact::create(name: %payload->name)
return apply(toast: 'Saved to the database.')
}
route async POST contact warn => apply(alert: 'Heads up: this cannot be undone.')
The server returns apply(toast: ...) or apply(alert: ...). The toast and dialog resources do the rest, no client code.
