Hacker News new | ask | show | jobs
by merpnderp 817 days ago
Isn’t this really just going back to the server side templating days and using jquery to load html snippets?
4 comments

The 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.

Yes, 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/

But 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.
Yes it's that, but more. I enjoy the out-of-bound swaps and triggering hx events or specific targets of render via response headers.