What it does
A Cursor rules file with basic HTMX practices. It lists the main attributes such as hx-get, hx-post, hx-trigger, hx-swap and hx-target, suggests a simple folder layout, and adds notes on semantic HTML, CSRF protection and server-side templating.
Use cases
- 01Load part of a page with hx-get and hx-target
- 02Show a loading indicator during a request
- 03Submit a form with hx-post and swap the result