xou-browser
v2.0.2
Published
Xou in the browser
Downloads
3
Maintainers
Readme
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