mikestefanello / pagoda

Rapid, easy full-stack web development starter kit in Go
MIT License
2.21k stars 115 forks source link

Livewire/Liveview like component #74

Closed alaibe closed 3 months ago

alaibe commented 3 months ago

First of all awesome job!

Would you think it would be possible to create an abstraction to htmx that makes it more like writing component in the same way it is being done in livewire /liveview?

mikestefanello commented 3 months ago

Thank you!

I have not used livewire/liveview. Can you provide some explanation as to how it works or what sort of functionality/ux you're interested in? Or perhaps a link to some examples and/or documentation? I'm definitely interested in making the frontend as easy to write and manage as possible.

alaibe commented 3 months ago

Here are the docs I am referring to: https://livewire.laravel.com/docs/quickstart https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html

As you can see in both cases, it allows to make components like. HTMX is clearly similar and allows to build in such a way but is way less opinionated.

mikestefanello commented 3 months ago

Thanks for sharing that. I will take a good look at it soon. There's another open discussion (https://github.com/mikestefanello/pagoda/issues/75) to adopt templ in to this project. I haven't yet fully explored it, but I believe using that would make building components like that much easier. Have you worked with templ at all?

mikestefanello commented 3 months ago

I'm going to close this in favor of https://github.com/mikestefanello/pagoda/issues/75 - let's keep move the discussion there since I think if templ is adopted, that will satisfy what you're looking for.