litestar-htmx
Installation
SKILL.md
litestar-htmx
litestar-htmx is the standalone Litestar integration for HTMX. Version 0.5.0
ships the litestar_htmx import package with request helpers, an optional
application plugin, template responses, and typed HTMX response-header helpers.
Code Style Rules
- Import the integration from
litestar_htmx, neverlitestar.plugins.htmx; Litestar no longer owns this package's import surface. - Use
HTMXRequestwhen handlers inspect HTMX request headers. - Return template fragments from HTMX endpoints; keep full-page routes and fragment routes distinct.
- Use the response classes for
HX-*headers; do not assemble those headers by hand. - Keep browser-side HTMX extensions separate from this server package.