From 5bdddc65385b494e028275c35483087cd8c7344e Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sun, 10 May 2026 16:13:21 -0400 Subject: [PATCH] fix(templates): fix ErrorToast rendering literal { message } instead of error text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ErrorToast used Go string literal '{ message }' instead of templ interpolation, so the actual error message was never shown — just the literal text "{ message }" appeared in the toast. --- templates/toast.templ | 2 +- templates/toast_templ.go | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/templates/toast.templ b/templates/toast.templ index 72af531..4e10df9 100644 --- a/templates/toast.templ +++ b/templates/toast.templ @@ -2,6 +2,6 @@ package templates templ ErrorToast(message string) { if message != "" { -
+
} } diff --git a/templates/toast_templ.go b/templates/toast_templ.go index c5e4476..84b0d23 100644 --- a/templates/toast_templ.go +++ b/templates/toast_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.1001 +// templ: version: v0.3.1020 package templates //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -30,7 +30,20 @@ func ErrorToast(message string) templ.Component { } ctx = templ.ClearChildren(ctx) if message != "" { - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "
") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }