This is the first release for an experimental HTMX renderer for @fastify/vite
, with JSX support provided via @kitajs/html.
This is currently the fastest SSR option for @fastify/vite
.
Documentation and benchmarks will be added soon. For now here's a rundown of its features:
- All route modules server-side rendered only.
- But if they import
*.css
,*.svg
and*.client.js
files, these are also loaded on the client. - Head tags with prefetch tags are precomputed at boot time, leveraging Vite's
ssr-manifest.json
.
- But if they import
- Route modules automatically loaded from
/views
folder, need to exportpath
. - Route layout modules automatically loaded from
/layouts
folder. - Fragment route modules automatically loaded from
/fragments
folder.- Fragments are just endpoints that return raw HTML, without the
<html>
and<body>
shells.
- Fragments are just endpoints that return raw HTML, without the
- Tailwind and CSS Nesting enabled out of the box.
Play with the example in starters/htmx-kitchensink
to learn more.