For similar-goal prior-art, see Unpoly[1]. Also the IETF asks[2] that you please stop using "X-" to prepend your custom HTTP headers[3] [1] https://unpoly.com/tutorial [2] https://tools.ietf.org/html/rfc6648 [3] https://htmx.org/reference/#headers
Unpoly examples wrecked my back button. Had to click back like 15 times to get back to HN... Is this a permanent issue because of the way it’s implemented?
Htmx – high power tools for HTML
171–175 of 175 posts
Re: Htmx – high power tools for HTML
#172The js via html tags is something I see also in Alpine.js, which has gotten a lot of press lately. Is this an alternative, or is each really its own niche (and you might use both)? Is there a comparison? Edit: It seems that htmx is almost entirely around AJAX, and Alpine around a) binding element data to objects and b) css & animations (such as hiding a popup). It would make a lot of sense to use them together (and t…
Re: Htmx – high power tools for HTML
#173Earlier quoted context omitted.
You are comparing apple to oranges :) alpine and stimulus are frameworks (doing all sorts of stuff: css animation, data objects, etc) while htmx is a library focusing solely on ajax. From your list, the only similar project to htmx is intercooler-js, but... htmx is actually the new version of intercooler-js (both projects by the same author).
> htmx is a library focusing solely on ajax htmx supports animations too, and it has extensions to add further functionality. Of course those projects differ in their functional range, but they share the way they work; by adding attributes to HTML.
Re: Htmx – high power tools for HTML
#174Re: Htmx – high power tools for HTML
#175Reminds me of AngularJS... :) Much simpler overall though. I like it.
It reminds me more of jQuery. And while I see how it's great for quick prototyping, it's going to be a nightmare in a large project. I really like React, where data and HTML are clearly separate. I don't want to send raw HTML back and forth, I want to send only data.