4 ms·
I'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
by baggachipz 2y ago
I'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