Live data from Hacker News

htmx

htmx.org

1–10 of 291 posts

Re: htmx

#3
Can HTMX be used with static site generators, such as Hugo, to create interactive documentation websites?

Re: htmx

#6
I continue to be impressed at the effort people will put into avoiding writing any JavaScript. Is it really easier to learn yet another DSL embedded in attribute tags rather than taking a day to setup your JS dev environment and then writing idiomatic code for running inside a web browser? Surely your htmx project will eventually cross a complexity threshold where you've added enough scaffolding that you may as well have setup a JS bundler in the first place, and yet the debugging, testing and deploying challenges will continue to push you into less-trodden territory.

I believe there might be a sweet spot for small projects unlikely to grow in complexity, maintained by a Python dev who is allergic to JS. But I don't see why you would want to invite yet another abstraction into the web stack, when it's built on top of the very language you're trying to avoid, and which you'll inevitably encounter in all its automagically obfuscated glory as soon as you run into a moderately complex problem.

Re: htmx

#7
post #3

Can HTMX be used with static site generators, such as Hugo, to create interactive documentation websites?

Technically feasible? Absolutely. You can already create interactive documentation just with client side JS in your Hugo generated site. And HTMX is just a client-side JS system for building that sort of JS-required interactivity in HTML alone without directly touching JavaScript. That said, I don't think the tooling to make this simple to get started with in Hugo is there yet. Though you could certainly build it.

Re: htmx

#8
For those with flexibility or a new project, also consider Phoenix LiveView. It’s been a joy to work with so far.
Post reply on HN