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.

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 ↗
18:53:30refreshed every second

Fragment log

  1. Waiting for the first request…