Re:Htmx – high power tools for HTML
by sam_goody on Thursday May 28, 2020 @04:54AM
(#23335013)
The 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 the hx- even complements the x-). Is that correct?
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 the hx- even complements the x-). Is that correct?