4 ms·
If I want to make a SSR site using Ruby, are there any good frontend UI libraries that make doing this easier? It’d be nice if there was some Ruby abstraction f
by replwoacause 2y ago
If I want to make a SSR site using Ruby, are there any good frontend UI libraries that make doing this easier? It’d be nice if there was some Ruby abstraction for writing HTML, CSS, and JS that makes building interactive UIs easier (possibly built on top of HTMX, AlpineJS, etc).
- Lio 2y agoDo you mean like Hotwire? https://hotwire.io/ https://hotwire.io/
- replwoacause 2y agoYes that is quite close to what I had in mind, thanks
- e12e 2y agoYou might want to look at view components: https://viewcomponent.org/ https://viewcomponent.org/ https://evilmartians.com/chronicles/viewcomponent-in-the-wild-building-modern-rails-frontends https://evilmartians.com/chronicles/viewcomponent-in-the-wil... https://thoughtbot.com/blog/hotwire-turbo-streaming-viewcomponents https://thoughtbot.com/blog/hotwire-turbo-streaming-viewcomp...
- replwoacause 2y agoVery intriguing, thanks for sharing this.
- nonconstant 2y agoAlso, you can check out the list of UI libraries for Hotwire https://hotwire.io/ecosystem/ui-frameworks https://hotwire.io/ecosystem/ui-frameworks
- replwoacause 2y agoThank you! This is exactly what I was looking for.
- GenericCanadian 2y agoI would suggest taking a look at Phlex (https://www.phlex.fun/ https://www.phlex.fun/). This kind of ruby maximalism is very pleasing to the dev process. For the interaction I'm using hotwire and stimulus. Been using pure Phlex views in production for 2 years now. I wrote Protos (https://github.com/inhouse-work/protos https://github.com/inhouse-work/protos) which is built on top of Phlex and adds a bunch of quality of life features I wanted.