8 ms·
Isn’t this really just going back to the server side templating days and using jquery to load html snippets?
by merpnderp 3y ago
Isn’t this really just going back to the server side templating days and using jquery to load html snippets?
- ForHackernews 3y agoYes, it's an implementation of the radical idea that we should deliver HTML (rather than a giant blob of JS) to clients purpose-built for rendering HTML. See also https://hotwired.dev/ https://hotwired.dev/
- mejutoco 3y agoBut without jquery, everything defined in html attributes, and hence the server responses can further define behaviour in their html attributes. Declarative, not procedural, if you want.
- lebean 3y agoYes it's that, but more. I enjoy the out-of-bound swaps and triggering hx events or specific targets of render via response headers.
- andybak 3y agoThe problem was that on the whole people didn't use jQuery to "load html snippets" and the architecture of jQuery tended to push people towards client-side spaghetti. htmx encourages you to put most of the logic on the server and to keep the client lean and clean.