@chttp/html
v0.4.0
Published
Minimal HTML string rendering (escape, h, html tag) authored inside the scriptc compilable subset
Downloads
170
Maintainers
Readme
@chttp/html
Minimal HTML string rendering authored inside the scriptc compilable subset, so it compiles into a chttp native binary. Names follow kitajs/html where the subset allows.
import { h, html, escapeHtml } from "@chttp/html";
const page = h("ul", ["class", "todos"], [
h("li", [], [escapeHtml(userText)]),
html`<li>${userText}</li>`,
]);See the html docs.
