motivation
- Why should only
<a>&<form>be able to make HTTP requests? - Why should only
click&submitevents trigger them? - Why should only
GET&POSTmethods be available? - Why should you only be able to replace the entire screen?
By removing these constraints, htmx completes HTML as a hypertext.
quick example
<button hx-post="/clicked" hx-swap="outerHTML">
Click Me
</button>When clicked, hx-post sends a POST to /clicked and hx-swap replaces the button with the response. No JavaScript.
book
Hypermedia Systems covers building Hypermedia-Driven Applications with htmx. Free online.
Hypermedia Systems
sponsors
Thank you to all our generous sponsors!
โ platinum Sponsor
โ silver Sponsors
htmx is the successor to intercooler.js
ส โขแดฅโขส made in montana
