diff options
| author | Xe Iaso <me@xeiaso.net> | 2025-04-26 19:47:00 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2025-04-26 19:47:00 -0400 |
| commit | b02d2ba479446de6f38fce1e25cec8564ef9010a (patch) | |
| tree | a60d001dda18187552591f70224bea38cc2000de /htmx | |
| parent | 4d27a5e7c416e2a6cab039684037681cdac63a19 (diff) | |
| download | x-b02d2ba479446de6f38fce1e25cec8564ef9010a.tar.xz x-b02d2ba479446de6f38fce1e25cec8564ef9010a.zip | |
chore(templ): fix go generate commands
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'htmx')
| -rw-r--r-- | htmx/htmx.go | 2 | ||||
| -rw-r--r-- | htmx/htmx_templ.go | 17 |
2 files changed, 12 insertions, 7 deletions
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("<script src=\"") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<script src=\"") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -49,12 +52,12 @@ func Use(exts ...string) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\"></script>") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "\"></script>") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } for _, ext := range exts { - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<script src=\"") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 3, "<script src=\"") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -67,11 +70,13 @@ func Use(exts ...string) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\"></script>") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 4, "\"></script>") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } } - return templ_7745c5c3_Err + return nil }) } + +var _ = templruntime.GeneratedTemplate |
