by recursivedoubts · 6y ago · 0 comments
I just released 0.0.4, so htmx is still very young, but it's got a decent test suite: https://htmx.org/test/0.0.4/test/
there is a nice extension mechanism:
and some very rough docs on how to pull off pure HTML animations:
https://htmx.org/examples/animations/
happy to answer questions
I'm curious why you are starting over. What is different from intercooler besides no need for jQuery? Why HTMX instead of Intercooler 2.0?
I also wanted to stress that htmx isn't just another javascript library, competing with react and the rest. It is focused on HTML and extending HTML to make it a powerful and complete hypertext. I think that the name htmx captures that idea pretty well.
Btw, I'm currently a very happy user of intercooler. Thanks for the awesome lib.
The fact that intercooler didn't have an extension mechanism meant I had to heap a lot of stuff into the core (e.g. ic-action) that was interesting and useful, but made the code base messy and unfocused.
htmx has an extension mechanism, so you can pull in stuff like this (or write your own extension):
that will take pressure off me to keep adding stuff to htmx and simply add more extensions.
The dependencies idea from intercooler, for example, ended up as this extension:
A question about this example: https://htmx.org/examples/inline-validation/
This paradigm revolves around sending validation requests to server-side endpoints, is there any reason to put that load on the server rather than validate it on the page prior to submit with JS? Or scalability issues?
Not being antagonistic, genuinely curious because I've not seen inline validation done this way.
I've been playing around with local demo, is it possible through extensions to make a wrapper that can perhaps compose GraphQL query inputs from forms?
And, based on some of the comments here, it seems like some people may have forgotten how to do anything that doesn't depend on AJAX. ;-)
lookin' at you, dutch
See from wikipedia:
>Omdat Katholieke Universiteit Tilburg tot een ongewenste afkorting zou leiden, werd het Katholieke Universiteit Brabant (KUB).
Kut-zooi zeg
Edit: Main concern is whether to start a new project now with intercooler or htmx
I am planning on supporting both intercooler and htmx for the forseeable future. I have a large app written in intercooler and I'm not porting it over any time soon. If I were starting a new project I'd use htmx, but then I know the developer pretty well if there are problems. :)
This way they can create entire products with zero backend code by simply calling 3rd party API.
This is probably also some very nice static blog engine concept to imagine around this.
And some mix with VueJS as well.
I guess the hardest thing is getting the word out, but thankfully oftenwrong has done that for me. :)
https://htmx.org/examples/click-to-load/
I see no network traffic when I click the 'load more agents' button. Am I missing something, where are the requests going?