browserify & pug - straight up.
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.
npm install pugify-html
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
- Fork
- Create
- Code
- Push
- Submit
- Yay!
This repository is liscensed under the MIT liscence to allow anyone to use or modify it. See LISCENSE