// Code generated by templ@(devel) DO NOT EDIT.
package shared
//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 "os"
func Layout(title string) 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 (void)
_, err = templBuffer.WriteString("")
if err != nil {
return err
}
// RawElement
_, err = templBuffer.WriteString("")
if err != nil {
return err
}
// Element (void)
_, err = templBuffer.WriteString("")
if err != nil {
return err
}
// Element (standard)
_, err = templBuffer.WriteString("")
if err != nil {
return err
}
// Text
var_3 := `Go htmx examples - `
_, err = templBuffer.WriteString(var_3)
if err != nil {
return err
}
// StringExpression
var var_4 string = title
_, err = templBuffer.WriteString(templ.EscapeString(var_4))
if err != nil {
return err
}
_, err = templBuffer.WriteString("")
if err != nil {
return err
}
// RawElement
_, err = templBuffer.WriteString("")
if err != nil {
return err
}
// If
if os.Getenv("DEBUG") == "true" {
// RawElement
_, err = templBuffer.WriteString("")
if err != nil {
return err
}
}
_, err = templBuffer.WriteString("")
if err != nil {
return err
}
// Element (standard)
_, err = templBuffer.WriteString("")
if err != nil {
return err
}
// TemplElement
err = Nav().Render(ctx, templBuffer)
if err != nil {
return err
}
// Element (standard)
_, err = templBuffer.WriteString("")
if err != nil {
return err
}
// Children
err = var_1.Render(ctx, templBuffer)
if err != nil {
return err
}
_, err = templBuffer.WriteString("
")
if err != nil {
return err
}
// RawElement
_, err = templBuffer.WriteString("")
if err != nil {
return err
}
// RawElement
_, err = templBuffer.WriteString("")
if err != nil {
return err
}
_, 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 Nav() 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_9 := templ.GetChildren(ctx)
if var_9 == nil {
var_9 = 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
})
}