// Code generated by templ@(devel) DO NOT EDIT. package main //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" func head() 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) _, err = templBuffer.WriteString("") if err != nil { return err } var_2 := `jolheiser` _, err = templBuffer.WriteString(var_2) if err != nil { return err } _, err = templBuffer.WriteString("") if err != nil { return err } if !templIsBuffer { _, err = templBuffer.WriteTo(w) } return err }) } func fill(hex string) string { return "#" + hex } func body(links []Link) 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_3 := templ.GetChildren(ctx) if var_3 == nil { var_3 = templ.NopComponent } ctx = templ.ClearChildren(ctx) _, err = templBuffer.WriteString("
\"avatar\"

") if err != nil { return err } var var_4 string = `@` _, err = templBuffer.WriteString(templ.EscapeString(var_4)) if err != nil { return err } var_5 := `jolheiser` _, err = templBuffer.WriteString(var_5) if err != nil { return err } _, err = templBuffer.WriteString("

") if err != nil { return err } if !templIsBuffer { _, err = templBuffer.WriteTo(w) } return err }) } func index(links []Link) 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) err = head().Render(ctx, templBuffer) if err != nil { return err } err = body(links).Render(ctx, templBuffer) if err != nil { return err } if !templIsBuffer { _, err = templBuffer.WriteTo(w) } return err }) }