Hacker GitHub

← All repos

a-h/templ

View on GitHub ↗ ★ 10,597 Go

A language for writing HTML user interfaces in Go.

12 mentions on Hacker News by 11 people: 1 story, 11 comments · first 2023-09-27 · latest 2026-07-26

Mentions per year 12 mentions · busiest year 2023 (5)
20082026
  1. …is what I might call a framework that GSX sits nicely in. Also one ai haven't tried: Templ. https://github.com/a-h/templ
  2. …within attributes. Auto json interpolation etc References: - HTML-style component authoring: https://github.com/a-h/templ/issues/663 and https://github.com/a-h/templ/issues/1181 - Inline/anonymous templ functions:…
    comment by jackielii · 2026-07-04 · in Gsx: JSX-Like Template for Go
  3. …Templ is still on v0 with no breaking changes yet, but lots of minor and patch releases: https://pkg.go.dev/github.com/a-h/templ?tab=versions To compare with the original packages they were complaining about: Wouter. v1 to v3 over 6 years…
  4. there's a few attempts, templ[0], gomponents[1]. Not for cli apps per se but for web dev. 0: https://github.com/a-h/templ 1: https://github.com/maragudk/gomponents
    comment by captnasia · 2024-11-01 · in Ink: React for interactive CLI apps
  5. …when massaging JSON (something most web servers end up doing sooner or later) is GJSON [2]. -- 1: https://github.com/a-h/templ 2: https://github.com/tidwall/gjson
    comment by emmanueloga_ · 2024-09-29 · in Some Go web dev notes
  6. https://github.com/a-h/templ is a similar mature project that has JSX style templates but using Go instead of Javascript with good VS code support etc.
  7. …[2]: https://templ.guide/syntax-and-usage/script-templates#script... [3]: https://github.com/a-h/templ/issues/494
    comment by attilakun · 2024-02-07 · in Show HN: CPU Prices on eBay
  8. …of JSX with Go as hosting language. Probably because it needs the preprocessor / compile step? [0] https://github.com/a-h/templ
    comment by rmetzler · 2023-12-31 · in LuaX: A Lua Dialect with JSX
  9. ▲ 228
    Templ: A language for writing HTML user interfaces in Go
    story by nalgeon · 2023-12-11 · 98 comments
  10. Besides the built-in templates/html, there's also this https://github.com/a-h/templ Haven't used it yet, but seems promising
  11. https://github.com/a-h/templ Templ is a far more elegant solution for composing HTML within Go
  12. …green threads approach is pretty solid. My go to stack for personal projects: Go SQLC for db access https://github.com/a-h/templ (kinda JSX for go) for templating HTMX Postgres I have a feeling Mojo will ship 1.0 before Rust finishes…
    comment by qaq · 2023-09-27 · in Rust vs Go: A Hands-On Comparison