piggy-htmldoc
v0.0.3
Published
Basic Html head/footer and so on dom helper
Downloads
1
Readme
piggy-htmldoc
Basic htmldoc helpers to build HTML head, footer or anything else content.
Usage
import { Head } from 'piggy-htmldoc/Parts';
let head = new Head();
// Some elements examples
head.title.queue('My app');
head.title.queue('Home');
head.addCss('http://toto.com/style.css');
head.addJs('http://toto.com/script.js');
head.addInlineScript('alert("ok");');
// Render it in any template
head.toString();
Developer
Installing dev dependencies, you can edit the package source. Then run:
npm run dev-compile
for babel transpilationnpm run dev-check
for jshint check