Hacker ApprovedDepartments

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%
Each figure is one person. RecommendsCriticizes

Recommended in 4 of 13 months

  1. November 2025: recommended
  2. December 2025: not recommended
  3. January 2026: not recommended
  4. February 2026: not recommended
  5. March 2026: not recommended
  6. April 2026: not recommended
  7. May 2026: not recommended
  8. June 2026: not recommended
  9. July 2026: recommended
  10. August 2026: not recommended
  11. September 2026: recommended
  12. October 2026: recommended
  13. 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

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.

Templ compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
Jinja14767%7—Approved
TemplThis page9375%4——
ASP.NET Razor8189%5——
Pug template engine5271%4——
Gsxui50100%2——
See all 6 template engines, ranked

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.”

RecommendsComment from 12 Oct 2026 in “Type-safe HTML templating in Zig”

“Datastar + Templ + Go is a highly effective combination.”

RecommendsComment from 14 Sep 2026 in “Ask HN: What are you working on? (September 2026)”

“gsx is born out of my ergonomics desire from templ”

MixedComment from 24 Jul 2026 in “Gsxui – Shadcn-style components for Go”

“Templ is great, but the ergonomics is not great.”

MixedComment from 15 Jul 2026 in “How I use HTMX with Go”

“Templ tries to go in that direction, but a year or so ago editor integration and tooling weren't great.”

MixedComment from 15 Jul 2026 in “How I use HTMX with Go”

“I would add a-h/templ for templates and it has Datastar support as well.”

RecommendsComment from 15 Jul 2026 in “How I use HTMX with Go”

“it felt more frustrating than ergonomic”

CriticizesComment from 14 Jul 2026 in “How I use HTMX with Go”

“I pair it with a-h/templ for a bit more type safety on the template, components and partials.”

RecommendsComment from 14 Jul 2026 in “How I use HTMX with Go”

“it sacrificies ergonomics for simplicity and verbosity”

CriticizesComment from 4 Jul 2026 in “Gsx: JSX-Like Template for Go”

“you write Go plus some templating language (like html/template or go templ)”

CriticizesComment from 1 Apr 2026 in “EmDash – a spiritual successor to WordPress that solves plugin security”

“Try using it with Templ and server-side rendering (SSR) instead of any JavaScript framework.”

RecommendsComment from 28 Nov 2025 in “Pocketbase – open-source realtime back end in 1 file”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.