@transclusion/template
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-alpha.3 • Public • Published

@transclusion/template

A tiny, focused and performant HTML template rendering library for Node.js and the browser.

npm install @transclusion/template --save

build status coverage status npm version

Features

  • Tiny. 1.43 kB gzipped and minified
  • Focused. The API consists of three methods, html, render and thunk.
  • Performant. Uses native HTML templates which are reused to perform super fast.

Why?

To learn how lit-html and hyperHTML works. Mostly inspired by lit-html.

Usage

import {html, render} from '@transclusion/template'

render(html`<div>Hello, world</div>`, document.body)

License

MIT © Marius Lundgård

/@transclusion/template/

    Package Sidebar

    Install

    npm i @transclusion/template

    Weekly Downloads

    0

    Version

    1.0.0-alpha.3

    License

    MIT

    Last publish

    Collaborators

    • mariuslundgard