What are the reasons for not picking Go templates over Templ with HTMX?
Searching on GitHub for Go + HTMX, I noticed there are a lot of examples using Go + Templ + HTMX. I would like to know why people choose not to stick with Go templates from the standard library.
Coming from Django templates, where using too many includes might impact performance, I found Go templates to be a breath of fresh air. And combining them with HTMX is like a match made in heaven. I’m not sure if there’s any performance penalty for Go having many partial templates, but I really like this pattern where I can group multiple HTMX partial templates per page.
Here is a sample app that I used as playground to experiment with HTMX and Go templates. Link here
Why would you choose templ over Go Templates for HTMX?