Lessons from building web apps with Go and HTMX, using Banter Bus and LettuceGo as examples. I show how HTML attributes and server-rendered fragments handle interactions while keeping application state on the backend.

Takeaways

  • Use server-rendered fragments when an interaction needs fresh data. For UI that doesn’t need the server, keep it local; the slides show where AlpineJS fits alongside HTMX.
  • This isn’t an all-or-nothing choice. If an interaction needs a lot of client-side state or needs to work offline, returning server-rendered HTML for every update may not be the best fit.

Further reading

Resources

TALK RECORDING
Watch on YouTube

Photo from conference

GopherCon conference photo
GopherCon conference photo