3 ms·
it'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 yo
by recursivedoubts 3y ago
it'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.