livebud / bud

The Full-Stack Web Framework for Go
MIT License
5.57k stars 180 forks source link

Question: How is bud different than using Go-templates? #290

Closed spy16 closed 2 years ago

spy16 commented 2 years ago

I have been struggling to find an easy-to-use fullstack setup that allows me to quickly build full-fledged apps in my indie-hacking journey.. This looks like the perfect tool (I tried the hacker-news tutorial and i am sold!!). ❤️

But I don't fully understand how this works. It looked like everything was being done server-side. What is the difference between this and using Go templates? 🤔 Is there some hydration mechanism built into this?

matthewmueller commented 2 years ago

Hey @spy16, I wrote most of that up in this discussion: https://github.com/livebud/bud/discussions/248.

What is the difference between this and using Go templates?

Bud uses Svelte to make building complex stateful UIs much easier to manage. With Go templates, you're on your own to implement this yourself.

Is there some hydration mechanism built into this?

Yep, we serve HTML that's hydrated on the client-side


Have a look at the discussion for more details and let me know if you have any questions in there.