0.1.1 • Published 6 years ago

pugify-html v0.1.1

Weekly downloads
13
License
-
Repository
github
Last release
6 years ago

pugify-html

browserify & pug - straight up.

Another, really?

This began as a fork of the excellent browserify transform browserify-plain-jade, which I frequently enjoyed using. The main goal was to change the name to reflect that pug is now the official name. In the process, I also decided to shorten the name and to change the package.json dependency to always use the latest version of pug.

How to install

npm install pugify-html

How to use

Make some pug:

h1 I am a very special penguin!

Require it:

var template = require('./penguin-pug.pug');

$('.container').append(template);

browserify it with the JavaScript API:

var pug = require('pugify-html');

var b = browserify();
b.transform(pug);
b.add('main.js');
b.bundle(...);

...or the CLI:

browserify -t pugify-html foo.pug > bundle.html

Contribute

  1. Fork
  2. Create
  3. Code
  4. Push
  5. Submit
  6. Yay!

License

This repository is liscensed under the MIT liscence to allow anyone to use or modify it. See LISCENSE