0.0.4 • Published 7 months ago

@decentra/html-markup v0.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

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>`;
}
0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago