piggy-htmldoc

0.0.3 • Public • Published

piggy-htmldoc NPM version

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 transpilation
  • npm run dev-check for jshint check

Readme

Keywords

none

Package Sidebar

Install

npm i piggy-htmldoc

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • tilap