HTL is a template language created in 2019 by Mike Bostock.
#1247on PLDB | 5Years Old |
git clone https://github.com/observablehq/htl
Inspired by lit-html and HTM, and referencing the fantastically precise HTML5 spec, we built hypertext literal: a tagged template literal for HTML which interpolates values based on context, allowing automatic escaping and the interpolation of non-serializable values, such as event listeners, style objects, and other DOM nodes.
html`<span style="background: ${"yellow; font-style: italic"};">It’s yellow (and italic).</span>`