3 ms·
HTMX + static site generators is DOPE. If we had just these two things back in the 90's...
by fghfgh65h5 2y ago
HTMX + static site generators is DOPE. If we had just these two things back in the 90's...
- baggachipz 2y agoI'm probably totally ignorant, but how would htmx work with a static site generator? Isn't the whole point of htmx that it extends the front end to dynamically interact with the server and get responses to inject?
- hedgehog 2y agoOn a documentation site, photo gallery, etc, it is very reasonable to use something like htmx to implement navigation without triggering full page loads.
- mbreese 2y agoYou could have static elements pre-rendered, but only loaded on demand. For example, if you had a blog with comments, you could have the comments pre rendered in htmx fragments, but only loaded when they are clicked. Or a photo gallery with thumbnails that are enlarged when clicked. At least, that’s one way it could work.
- victorbjorklund 2y agoI used it on a couple of static sites. Sometimes you just want that "SPA" navigation without a full page reload but you dont need a full JS framework
- baq 2y agowe did... almost in the 90s. one example which I distinctively remember using before AJAX was a word: https://github.com/twisted/nevow/blob/master/nevow/stan.py https://github.com/twisted/nevow/blob/master/nevow/stan.py