3 ms·
Pretty sure htmx is a framework, it adds a new abstraction on top of HTML to integrate server rendered templates. You can then amend it with some UI library (e.
by kreetx 3y ago
Pretty sure htmx is a framework, it adds a new abstraction on top of HTML to integrate server rendered templates. You can then amend it with some UI library (e.g Material) on the front to make it all look nice.
- recursivedoubts 3y agoit's kind of a semantic argument the distinction i like between "library" and "framework" is: * a library you call into * a framework calls back into code you provide Using this definition, from a javascript perspective, htmx can be considered a framework, since you are providing "code" (well, html attributes) that it is hooking up event handlers and calling back into. However, from an HTML perspective, htmx is a library, in that you "call" into the htmx code by "invoking" attributes. I lean towards calling htmx a library because I have a bias towards the HTML-first interpretation of htmx, but I admit that you could easily justify the other interpretation of htmx.