html-markup
Package to render markup based on Javascript template literals. It to some extent based on/inspired by work of Jason Miller at https://github.com/developit/htm
This is VERY simplistic implementation based on tagged templates.
The purpose is just perform the kind of SSR (server-side-rendering).
Usage:
import html from "@decentra/html-markup";
export function renderSomeHtml(values) {
return html`<div class="${values.className}`>
{values.items.map(item => html`<div>${item.message}</div>`)}
</div>`;
}