Template fragments
Creating routes that emit HTML fragments is straightforward in Jeasx, which makes it a perfect match for HTMX. Sometimes, however, creating many routes by hand can be tedious.
Template fragments allow you to render a fragment or partial bit of the content within a template, rather than the entire template. In Jeasx you can implement this feature 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…