Re:Better HTTP server routing in Go 1.22
by qaq on Monday October 16, 2023 @09:30AM
(#37899632)
Good one less external dependency. As a side note sqlc + postgres + templ (kindah jsx for go) + htmx + tailwinds has being extremely productive stack to develop in
[ Parent
| on HN ]
Re:Better HTTP server routing in Go 1.22
by austinpena on Monday October 16, 2023 @09:52AM
(#37899905)
I really wish that templ had intellij support! Love the idea
I think that is in the works ? VS Code support is top notch
Re:Better HTTP server routing in Go 1.22
by austinpena on Saturday October 21, 2023 @03:29PM
(#37969820)
Anywhere I can see updates?
Re:Better HTTP server routing in Go 1.22
by brunoluiz on Monday October 16, 2023 @10:31AM
(#37900368)
I thought you had mistyped template there but actually no, templ is some other package different from the stdlib one. I had a quick look on its documentation and it seems quite neat!
I was hoping that bud with svelte compilation would fill this gap, but looks like templ is a nicer alternative.
How do you handle tailwind here? I really like the idea of adding tailwind but if it means using npm I think I'd rather just write my own css.
Re:Better HTTP server routing in Go 1.22
by simantel on Monday October 16, 2023 @01:27PM
(#37903206)
I'm not OP, but Tailwind ships a binary you can use (by bundling up a JS runtime): https://tailwindcss.com/blog/standalone-cli