diff options
Diffstat (limited to 'htmx/htmx_templ.go')
| -rw-r--r-- | htmx/htmx_templ.go | 17 |
1 files changed, 11 insertions, 6 deletions
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 |
