How does this compare to html/template in the Go standard library?
https://pkg.go.dev/html/template
Which is based on top of text/template.
https://pkg.go.dev/html/template
Which is based on top of text/template.
To very common things to do when templating is
- to include a sub-template (e.g. the article template includes the sidebar template)
- to specify that the template I work with and probably others should be rendered inside a slot in a containing template (e.g. the article template should be rendered into the general root template that contains the public menu but the admin pages should render in another root template)
Last I checked only the first of these use cases were supported.
I don't like Go's template engine too much, I find it a bit cumbersome in many cases. But it's quite capable.