aboutsummaryrefslogtreecommitdiff
path: root/cmd/todayinmarch2020
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-04-26 19:47:00 -0400
committerXe Iaso <me@xeiaso.net>2025-04-26 19:47:00 -0400
commitb02d2ba479446de6f38fce1e25cec8564ef9010a (patch)
treea60d001dda18187552591f70224bea38cc2000de /cmd/todayinmarch2020
parent4d27a5e7c416e2a6cab039684037681cdac63a19 (diff)
downloadx-b02d2ba479446de6f38fce1e25cec8564ef9010a.tar.xz
x-b02d2ba479446de6f38fce1e25cec8564ef9010a.zip
chore(templ): fix go generate commands
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/todayinmarch2020')
-rw-r--r--cmd/todayinmarch2020/html_templ.go31
-rw-r--r--cmd/todayinmarch2020/main.go2
2 files changed, 22 insertions, 11 deletions
diff --git a/cmd/todayinmarch2020/html_templ.go b/cmd/todayinmarch2020/html_templ.go
index a97c222..fdd5d41 100644
--- a/cmd/todayinmarch2020/html_templ.go
+++ b/cmd/todayinmarch2020/html_templ.go
@@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
-// templ: version: v0.2.731
+// templ: version: v0.3.857
package main
//lint:file-ignore SA4006 This context is only used if a nested component is present.
@@ -15,6 +15,9 @@ import (
func headArea() 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() {
@@ -30,17 +33,20 @@ func headArea() templ.Component {
templ_7745c5c3_Var1 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<style>\n main {\n text-align: center;\n }\n </style>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<style>\n main {\n text-align: center;\n }\n </style>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- return templ_7745c5c3_Err
+ return nil
})
}
func body(day int, quip 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() {
@@ -56,7 +62,7 @@ func body(day int, quip string) templ.Component {
templ_7745c5c3_Var2 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<br><big>Today is March <big>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "<br><big>Today is March <big>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -69,7 +75,7 @@ func body(day int, quip string) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</big>, 2020</big><br><br><br><br><p>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 3, "</big>, 2020</big><br><br><br><br><p>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -82,17 +88,20 @@ func body(day int, quip string) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</p><br><br>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 4, "</p><br><br>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- return templ_7745c5c3_Err
+ return nil
})
}
func footer() 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() {
@@ -108,7 +117,7 @@ func footer() templ.Component {
templ_7745c5c3_Var5 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<p>From <a href=\"https://xeiaso.net\">Within</a> - <a href=\"https://pony.social/@cadey\">")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 5, "<p>From <a href=\"https://xeiaso.net\">Within</a> - <a href=\"https://pony.social/@cadey\">")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -121,10 +130,12 @@ func footer() templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</a> - <a href=\"https://github.com/Xe/x/tree/master/cmd/todayinmarch2020\">Source Code</a></p>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 6, "</a> - <a href=\"https://github.com/Xe/x/tree/master/cmd/todayinmarch2020\">Source Code</a></p>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- return templ_7745c5c3_Err
+ return nil
})
}
+
+var _ = templruntime.GeneratedTemplate
diff --git a/cmd/todayinmarch2020/main.go b/cmd/todayinmarch2020/main.go
index c53578e..7c3f773 100644
--- a/cmd/todayinmarch2020/main.go
+++ b/cmd/todayinmarch2020/main.go
@@ -15,7 +15,7 @@ import (
"within.website/x/xess"
)
-//go:generate go run github.com/a-h/templ/cmd/templ@latest generate
+//go:generate go tool templ generate
var (
port = flag.String("port", "23698", "TCP port to listen on")