hx-* attributes to your markup, return a rendered partial from the route, and HTMX
swaps the result into the page.
Cross-element updates
Set theHX-Trigger response header to fire an event that other elements listen for.
This is how one action refreshes an unrelated part of the page.
Built-in modals
Where partials live
HTMX response fragments belong intemplates/partials/, separate from full page
templates in templates/pages/. A partial renders HTML with no layout wrapper, which is
what HTMX expects to swap in.