Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The one thing that golang really needs is a templating library that doesn't suck, Html bindings in this language feel more like an after thought and this is coming from a person that really likes this language.


Have you tried this: https://templ.guide/ ?

This is a very simple and clean Go templating library.


I’m really looking forward to IntelliJ support


I spend most of my time in the JavaScript ecosystem, but I've worked with Go and Rails and have been working with Django recently and my take is that this seems to be true for most other languages/frameworks.

There are plenty of valid criticisms of React/etc, but the one thing they got really really right was making "templates" be normal functions that return a data structure representing the HTML. Logic is way less awkward, no global variables spanning partials in different files and it's impossible to write incorrectly nested markup. I really wish backend-only frameworks would steal that idea.


Next.js very literally does by running React on the backend too!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: