package main import ( "context" "fmt" "html" "io" "os" "github.com/a-h/templ" ) func main() { ctx := context.Background() list([]string{"a", "b", "c"}).Render(ctx, os.Stdout) codeList([]string{"A", "B", "C"}).Render(ctx, os.Stdout) } func codeList(items []string) templ.Component { return templ.ComponentFunc(func(ctx context.Context, w io.Writer) (err error) { if _, err = io.WriteString(w, "