// Code generated by templ@(devel) DO NOT EDIT.
package clicktoedit
//lint:file-ignore SA4006 This context is only used if a nested component is present.
import "github.com/a-h/templ"
import "context"
import "io"
import "bytes"
// GoExpression
import "examples/shared"
func Display(u user) templ.Component {
return templ.ComponentFunc(func(ctx context.Context, w io.Writer) (err error) {
templBuffer, templIsBuffer := w.(*bytes.Buffer)
if !templIsBuffer {
templBuffer = templ.GetBuffer()
defer templ.ReleaseBuffer(templBuffer)
}
ctx = templ.InitializeContext(ctx)
var_1 := templ.GetChildren(ctx)
if var_1 == nil {
var_1 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
// Element (standard)
_, err = templBuffer.WriteString("
")
if err != nil {
return err
}
// Element (standard)
_, err = templBuffer.WriteString("
")
if err != nil {
return err
}
// Element (standard)
_, err = templBuffer.WriteString("")
if err != nil {
return err
}
// Text
var_3 := `: `
_, err = templBuffer.WriteString(var_3)
if err != nil {
return err
}
// StringExpression
var var_4 string = u.firstName
_, err = templBuffer.WriteString(templ.EscapeString(var_4))
if err != nil {
return err
}
_, err = templBuffer.WriteString("
")
if err != nil {
return err
}
// Element (standard)
_, err = templBuffer.WriteString("
")
if err != nil {
return err
}
// Element (standard)
_, err = templBuffer.WriteString("")
if err != nil {
return err
}
// Text
var_6 := `: `
_, err = templBuffer.WriteString(var_6)
if err != nil {
return err
}
// StringExpression
var var_7 string = u.lastName
_, err = templBuffer.WriteString(templ.EscapeString(var_7))
if err != nil {
return err
}
_, err = templBuffer.WriteString("
")
if err != nil {
return err
}
// Element (standard)
_, err = templBuffer.WriteString("
")
if err != nil {
return err
}
// Element (standard)
_, err = templBuffer.WriteString("")
if err != nil {
return err
}
// Text
var_9 := `: `
_, err = templBuffer.WriteString(var_9)
if err != nil {
return err
}
// StringExpression
var var_10 string = u.email
_, err = templBuffer.WriteString(templ.EscapeString(var_10))
if err != nil {
return err
}
_, err = templBuffer.WriteString("
")
if err != nil {
return err
}
// Element (standard)
_, err = templBuffer.WriteString("
")
if err != nil {
return err
}
_, err = templBuffer.WriteString("
")
if err != nil {
return err
}
if !templIsBuffer {
_, err = io.Copy(w, templBuffer)
}
return err
})
}
func Form(u user) templ.Component {
return templ.ComponentFunc(func(ctx context.Context, w io.Writer) (err error) {
templBuffer, templIsBuffer := w.(*bytes.Buffer)
if !templIsBuffer {
templBuffer = templ.GetBuffer()
defer templ.ReleaseBuffer(templBuffer)
}
ctx = templ.InitializeContext(ctx)
var_12 := templ.GetChildren(ctx)
if var_12 == nil {
var_12 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
// Element (standard)
_, err = templBuffer.WriteString("")
if err != nil {
return err
}
if !templIsBuffer {
_, err = io.Copy(w, templBuffer)
}
return err
})
}
func Index(u user) templ.Component {
return templ.ComponentFunc(func(ctx context.Context, w io.Writer) (err error) {
templBuffer, templIsBuffer := w.(*bytes.Buffer)
if !templIsBuffer {
templBuffer = templ.GetBuffer()
defer templ.ReleaseBuffer(templBuffer)
}
ctx = templ.InitializeContext(ctx)
var_18 := templ.GetChildren(ctx)
if var_18 == nil {
var_18 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
// TemplElement
var_19 := templ.ComponentFunc(func(ctx context.Context, w io.Writer) (err error) {
templBuffer, templIsBuffer := w.(*bytes.Buffer)
if !templIsBuffer {
templBuffer = templ.GetBuffer()
defer templ.ReleaseBuffer(templBuffer)
}
// Element (standard)
_, err = templBuffer.WriteString("