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
20082026
-
…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
comment by gavmor · 2026-07-26 · in Htmx 4.0, the first JavaScript library to release exclusively on the Game Boy -
…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 -
…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…
comment by flanbiscuit · 2024-12-03 · in Dependency management fatigue, or why I ditched React for Go+HTMX+Templ -
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 -
…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 -
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.
comment by qaq · 2024-05-27 · in Show HN: Use Go's HTML/template to write React-like code -
…[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 -
…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 -
Besides the built-in templates/html, there's also this https://github.com/a-h/templ Haven't used it yet, but seems promising
comment by mozey · 2023-10-24 · in My Love Letter to Rails (and Ruby) – Or, Why RoR Isn't Dead Yet -
https://github.com/a-h/templ Templ is a far more elegant solution for composing HTML within Go
comment by Sheeny96 · 2023-10-21 · in Go Package for Building Progressive Web Apps -
…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