{{/* Response fragment swapped into place by htmx after a /newsletter/signup submission. Returns a whose id matches the form's hx-target so the swap is clean and no hard-coded id leaks into Go. Params: Id string - matches the Id used in newsletterForm (e.g. "widget", "home") Error string - if non-empty, renders the error variant */}} {{ define "timeline/fragments/newsletterResponse" }} {{ if .Error }} {{ .Error }} {{ else }} You're signed up! {{ end }} {{ end }}