Repository navigation
v3.1.1
In short: A security fix: templ v0.3.1100, which needs Go 1.26.
Fixed
- templ v0.3.1100: code generated by earlier versions does not sanitize spread attributes such as
{ attrs... }, or URLs in attributes such as<iframe src>. Every vendored component passesAttributesthrough a spread, so every project with an htmx or Datastar frontend was affected. Headless and SvelteKit projects have no templ code. - goldmark v1.8.6 for docs and blog content (CVE-2026-5160).
- Docker images on
alpine:3.24instead ofalpine:3.20.2, which no longer gets security updates. golang.org/x/cryptov0.57.0,golang.org/x/netv0.59.0 and the othergolang.org/xmodules templ pulls in.
Changed
- Go 1.26: generated projects say
go 1.26.0and build ongolang:1.26.goilerplate doctorreads the version from yourgo.modand asks for Go 1.26. - shadcn-templ v2.0.0-beta.16 in
AGENTS.md. The vendored components are unchanged.
Upgrade
- Install Go 1.26 or newer.
- Commit your work, run
goilerplate update, then switch to thegoilerplate-update-v3.1.1branch. By hand instead:go get github.com/a-h/templ@v0.3.1100 github.com/yuin/goldmark@v1.8.6,go mod edit -go=1.26.0, andgolang:1.26andalpine:3.24in yourDockerfile. - Run
go tool templ generateandgo mod tidy, then build and test. Code generated by an older templ no longer compiles against v0.3.1100, so regenerating is required.