Template fragments
Template fragments let a single route render just a named part of its template, which makes them a perfect match for HTMX.
Creating routes that emit HTML fragments is straightforward in Jeasx, but creating many of them by hand can be tedious. Template fragments can be implemented in userland with just a few lines of code bundled in two simple components. Both cards below come from this very route: the pager asks for ~product, the clock for ~time. Watch the log to see how small the answers are.
Server time
raw fragment ↗Fragment log
- Waiting for the first request…