2.0.2 • Published 6 years ago

xou-browser v2.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Install

$ npm install xou-browser

Usage

const xouBrowser = require('xou-browser');

const time = xouBrowser`<span>Time: ${ (new Date()).toUTCString() }</span>`;



document.body.appendChild(node);

API

xouBrowser``

A tagged template literal returning dom nodes.

Example

const node = xou`<div>
  <h1>Hello from xou</h1>
  <p>Xou on <a href="https://github.com/herber/xou">github</a></p>
</div>`;

document.body.appendChild(node);

License

MIT © Tobias Herber