3 ms·
Honestly, seeing the Datastar server-side snippets reminded me of writing RJS in Rails back in the day. Everything old is new again. Having the backend aware
by multiplegeorges 1y ago
Honestly, seeing the Datastar server-side snippets reminded me of writing RJS in Rails back in the day.
Everything old is new again.
Having the backend aware of the IDs in the HTML leads to pain. The HTMX way seems a lot simpler and Rails + Turbo has gone in that direction as well.
- mring33621 1y agoi don't know what the big deal is with a REST API, the front and back ends need to agree on the JSON field names with an HTML API for Datastar, the front and back ends need to agree on the element IDs Really not a huge difference
- multiplegeorges 1y agoRight but this isn’t a REST API. This technique specifically rejects that approach. With htmx, the server just returns HTML and the logic for handling it is entirely in the front end.