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.

Product browser

raw fragment ↗
Essence Mascara Lash Princess

Essence Mascara Lash Princess

$9.99

The Essence Mascara Lash Princess is a popular mascara known for its volumizing and lengthening effects. Achieve dramatic lashes with this long-lasting and cruelty-free formula.

Server time

raw fragment ↗
06:54:01refreshed every second

Fragment log

  1. Waiting for the first request…