Templ
Ranked 2 of 6 template engines by recommenders
Recommended for writing type-safe HTML templates in Go, often paired with Datastar for server-side rendering. Critics say its ergonomics are weak and editor tooling was lacking.
Recommended for writing type-safe HTML templates in Go, often paired with Datastar for server-side rendering. Critics say its ergonomics are weak and editor tooling was lacking.
12 people gave an opinion
- recommend it
- 9
- criticize it
- 3
- approval share
- 75%
Recommended in 4 of 13 months
- November 2025: recommended
- December 2025: not recommended
- January 2026: not recommended
- February 2026: not recommended
- March 2026: not recommended
- April 2026: not recommended
- May 2026: not recommended
- June 2026: not recommended
- July 2026: recommended
- August 2026: not recommended
- September 2026: recommended
- October 2026: recommended
- November 2026: not recommended (month in progress)
Why it doesn’t carry the badge
- 9 people recommend itNeeds 10 or more, not met.
- 3 recommenders for every criticNeeds 2 to 1 or better, met.
- Recommended in 4 of 13 monthsNeeds 4 or more, met.
The same three rules apply to every product, and the badge can’t be bought. How the badge works
What people say about it
The reasons people give, with the number of comments that give each one. Open a reason to read what they said.
Why people recommend it
Each mark is one comment
Pairs well with Datastar
“I would add a-h/templ for templates and it has Datastar support as well.”
Comment from 15 Jul 2026 in “How I use HTMX with Go” “Datastar + Templ + Go is a highly effective combination.”
Comment from 14 Sep 2026 in “Ask HN: What are you working on? (September 2026)” Good for server-side rendering in Go
“Try using it with Templ and server-side rendering (SSR) instead of any JavaScript framework.”
Comment from 28 Nov 2025 in “Pocketbase – open-source realtime back end in 1 file” “Datastar + Templ + Go is a highly effective combination.”
Comment from 14 Sep 2026 in “Ask HN: What are you working on? (September 2026)”
What people warn about
Each mark is one comment
Weak ergonomics for writing templates
“Templ is great, but the ergonomics is not great.”
Comment from 15 Jul 2026 in “How I use HTMX with Go” “it sacrificies ergonomics for simplicity and verbosity”
Comment from 4 Jul 2026 in “Gsx: JSX-Like Template for Go” “gsx is born out of my ergonomics desire from templ”
Comment from 24 Jul 2026 in “Gsxui – Shadcn-style components for Go” - Comment from 14 Jul 2026 in “How I use HTMX with Go”
Other template engines people recommend
The four most recommended other template engines, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.
| Product | Recommend | Criticize | Approval | Months | Owned | Badge |
|---|---|---|---|---|---|---|
| Jinja | 14 | 7 | 67% | 7 | — | Approved |
| TemplThis page | 9 | 3 | 75% | 4 | — | — |
| ASP.NET Razor | 8 | 1 | 89% | 5 | — | — |
| Pug template engine | 5 | 2 | 71% | 4 | — | — |
| Gsxui | 5 | 0 | 100% | 2 | — | — |
What people said
11 of the 13 comments that mention it, newest first. Each links to the original comment.
“I prefer the Go Templ approach.”
“Datastar + Templ + Go is a highly effective combination.”
“gsx is born out of my ergonomics desire from templ”
“Templ is great, but the ergonomics is not great.”
“Templ tries to go in that direction, but a year or so ago editor integration and tooling weren't great.”
“I would add a-h/templ for templates and it has Datastar support as well.”
“it felt more frustrating than ergonomic”
“I pair it with a-h/templ for a bit more type safety on the template, components and partials.”
“it sacrificies ergonomics for simplicity and verbosity”
“you write Go plus some templating language (like html/template or go templ)”
“Try using it with Templ and server-side rendering (SSR) instead of any JavaScript framework.”
Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.