package clicktoedit import "examples/shared" templ Display(u user) {
The click to edit pattern provides a way to offer inline editing of all or part of a record without a page refresh.
/contacts/1/edit
@shared.Raw() {
@Display(u)
}
@shared.Raw() {
@Form(u)
}
PUT
back to /contacts/1
, following the usual REST-ful pattern.