htmx is a very different way of developing your web application. You can define a lot of behaviour inside your HTML with the new attributed added by htmx. This allows you to build an interactive website without using any JavaScript. You do need a REST API that returns HTML though.
For more information about HTMX you can read the htmx docs.
5 Comments
martinb@lemmy.sdf.org · 3 pts · 3y
Thanks for sharing. I'll have a read when I finally get back to my pc
httpjames@sh.itjust.works · 3 pts · 3y
Cool concept, especially with making pure HTML feel responsive, but API endpoints returning HTML is definitely impractical for large applications. I wonder if XSS is a concern by default.
eluvatar@programming.dev · 1 pts · 3y
Yeah, talk about tight coupling, it's like the opposite of graphql
kglitch@kglitch.social · 1 pts · 3y
There's no coupling because there isn't really a front-end to couple with 👍
DiamondDemon@programming.dev · -1 pts · 3y
sounds like PHP. are we gonna have another PHP situation on our hands?