Templ Has a Free API That Builds Type-Safe HTML Templates in Go
go
dev.to
Templ generates Go code from HTML templates. Type-safe, fast, with LSP support in your editor. No more text/template runtime errors. Quick Start go install github.com/a-h/templ/cmd/templ@latest Define a Template // hello.templ package main templ Hello(name string) { div> h1>Hello, { name }!h1> p>Welcome to Templ.p> div> } templ Page(title string, body templ.Component) { DOCTYPE html> html> head>title>{ title }title>head