pugify-html
v0.1.1
Published
browserify transform to compile pug templates to HTML strings, leaving the parser behind.
Maintainers
Readme
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-htmlHow 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.htmlContribute
- Fork
- Create
- Code
- Push
- Submit
- Yay!
License
This repository is liscensed under the MIT liscence to allow anyone to use or modify it. See LISCENSE
