From b02d2ba479446de6f38fce1e25cec8564ef9010a Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sat, 26 Apr 2025 19:47:00 -0400 Subject: chore(templ): fix go generate commands Signed-off-by: Xe Iaso --- htmx/htmx.go | 2 +- htmx/htmx_templ.go | 17 +++++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) (limited to 'htmx') diff --git a/htmx/htmx.go b/htmx/htmx.go index 123259a..bd03d2d 100644 --- a/htmx/htmx.go +++ b/htmx/htmx.go @@ -7,7 +7,7 @@ import ( "within.website/x/internal" ) -//go:generate go run github.com/a-h/templ/cmd/templ@latest generate +//go:generate go tool templ generate var ( //go:embed *.js diff --git a/htmx/htmx_templ.go b/htmx/htmx_templ.go index 7505aa2..e5bdfc3 100644 --- a/htmx/htmx_templ.go +++ b/htmx/htmx_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.747 +// templ: version: v0.3.857 package htmx //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -21,6 +21,9 @@ import templruntime "github.com/a-h/templ/runtime" func Use(exts ...string) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -36,7 +39,7 @@ func Use(exts ...string) templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "\">") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } for _, ext := range exts { - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 4, "\">") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } } - return templ_7745c5c3_Err + return nil }) } + +var _ = templruntime.GeneratedTemplate -- cgit v1.2.3