# Templ

9 Hacker News commenters recommended Templ and 3 criticized it, November 2025 to November 2026. It was recommended in 4 of 13 months.

**Verdict:** 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.

## Why people recommend it

- Pairs well with Datastar (2 comments): "I would add a-h/templ for templates and it has Datastar support as well." ([source](https://news.ycombinator.com/item?id=48917272)) "Datastar + Templ + Go is a highly effective combination." ([source](https://news.ycombinator.com/item?id=49693630))
- Good for server-side rendering in Go (2 comments): "Try using it with Templ and server-side rendering (SSR) instead of any JavaScript framework." ([source](https://news.ycombinator.com/item?id=46076424)) "Datastar + Templ + Go is a highly effective combination." ([source](https://news.ycombinator.com/item?id=49693630))

## What people warn about

- Weak ergonomics for writing templates (4 comments): "Templ is great, but the ergonomics is not great." ([source](https://news.ycombinator.com/item?id=48918100)) "it sacrificies ergonomics for simplicity and verbosity" ([source](https://news.ycombinator.com/item?id=48783295)) "gsx is born out of my ergonomics desire from templ" ([source](https://news.ycombinator.com/item?id=49042297))

## Alternatives hackers recommend

- [Jinja](https://hackerapproved.com/p/jinja.md): 14 recommend
- [ASP.NET Razor](https://hackerapproved.com/p/razor.md): 8 recommend
- [Pug template engine](https://hackerapproved.com/p/pug.md): 5 recommend
- [Gsxui](https://hackerapproved.com/p/gsxui.md): 5 recommend
- [Liquid templating language](https://hackerapproved.com/p/liquid-templating-language.md): 5 recommend

## Cite as

Hacker Approved, "Templ", https://hackerapproved.com/p/templ/ (counts from 1,795,640 Hacker News comments, November 2025 to November 2026).
