package templates // FieldError renders a small red error message beneath a form field. // Renders nothing when msg is empty so callers can unconditionally include it. templ FieldError(msg string) { if msg != "" {

{ msg }

} } // GeneralError renders a full-width error banner above the form. // Renders nothing when msg is empty. templ GeneralError(msg string) { if msg != "" {
{ msg }
} }