Hacker News new | past | comments | ask | show | jobs | submit login

HTMX + static site generators is DOPE. If we had just these two things back in the 90's...



we 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


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?


You 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.


On a documentation site, photo gallery, etc, it is very reasonable to use something like htmx to implement navigation without triggering full page loads.


I 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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: