package clicktoedit import "examples/shared" templ Display(u user) {
: { u.firstName }
: { u.lastName }
: { u.email }
} templ Form(u user) {
} templ Index(u user) { @shared.Layout("Click to Edit") {

Click to Edit

The click to edit pattern provides a way to offer inline editing of all or part of a record without a page refresh.

Demo

@Display(u) } }