Templ

Build HTML in Go.

Visit website ↗

Console’s review

· Reviewed by David Mytton

What we like

Create HTML components rendered in Go with all the power of loops, conditionals, etc. Server-side rendering so the browser only receives HTML. Go is fast. Doesn’t require JS, but can easily be combined with something like htmx for interactivity. Includes injection attack mitigation by default. Use the IDE integration to get proper highlighting, formatting, etc.

Tradeoffs

Unsure whether it’s a good thing to be embedding HTML inside Go. It requires a generate step which codegens the Go that actually renders the HTML.

Console is a free weekly newsletter with short reviews of developer tools, covering strengths and tradeoffs. This review reflects our assessment at publication. Read our selection criteria and learn about Console.

Discover your next favorite tool

Independent devtool reviews and the latest betas, in your inbox every Thursday. Free.