Skip to content

browserify transform to turn pug templates into html strings

Notifications You must be signed in to change notification settings

coachshea/pugify-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

browserify transform to turn pug templates into html strings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published