3 ms·
You can look into drab, an elixir server-side DOM manipulation library: https://github.com/grych/drab https://github.com/grych/drab. I've never used it, but man
by randomstudent 9y ago
You can look into drab, an elixir server-side DOM manipulation library: https://github.com/grych/drab https://github.com/grych/drab. I've never used it, but many people in the Elixir community think it holds a lot of potential.
- esistgut 9y agoThis project seems really interesting, I guess it could pretty much replace SPAs (and related javascript fatigue) in a lot of use cases. Am I missing some significant limitation other than moving some computation back to the servers?
- randomstudent 9y agoI'm not qualified to answer that, as I haven't used Drab, but you can ask on the proper topic at the elixir forum: https://elixirforum.com/t/drab-phoenix-library-for-server-side-dom-access/3277/111 https://elixirforum.com/t/drab-phoenix-library-for-server-si...
- grych 9y agoThe only real limitation I can see for now is a response time for the actions, which might be done locally, without requesting anything from the server. Eg, you don't want to do animation loop with Drab, for this just use the ol' good JS.
- notamy 9y agoHoly @#$% that's amazing.
- bobwaycott 9y agoBoy, am I glad I read the HN comments today. Never knew Drab existed. It’s fantastic!