@schniggie@dhauenstein Tried this some weeks ago for some time, but still felt like a hack and I switched back. It is still better than the other tools. Let's talk again in a few months if you are still sticking to it, maybe I need to give it more time :)
Lot of hype around Go+htmx these days, but templ solves a much bigger problem I had with web development in Go for me. Not the hot reloading, but still nice addition!
This is the new templ `--watch` mode with hot reload.
It only recompiles and restarts your app if the Go code in your template changes, HTML and text changes are instant.
I used dotenv libs in my project in the past, but I think it's the better approach to let the developer or the deployment environment handle how to load and prepare the environment
I have just pushed the Code to Github🎉:
https://t.co/T7ZWrVG7Jp
Contributions are welcome 🤝
It is still in very early alpha and a lot of things do not work at the moment
but it's a start to create something open source and vendor independet (and free ;-))
Saw this tweet about a Rails/Hotwire dynamic select field and was curious how this would look with Go and htmx. I made a minimal example app and I'm happy how light this approach is. Some fresh air when not a full blown JS app is needed. https://t.co/O942bad79q
🌶️ Hotwire tip 20/30
🪄 Dynamic select fields
We continue today with another very common use-case.
We'll implement a dynamic set of select fields. This is useful when the options of one field depend on the selected option of another one.
This is how you get it done👇