Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

brjade

0.0.4 • Public • Published

brjade

A Browserify transform to inline the result of calls to jade.renderFile and jade.render.

Heavily inspired by brfs.

In a script that might or might not be browserified:

var jade = require('jade');
 
jade.renderFile(__dirname + '/index.jade');

When bundling:

var fs = require('fs');
var browerify = require('browerify');
var brjade = require('brjade');
 
browserify('index.js')
    .transform(brjade)
    .bundle()
    .pipe(fs.createWriteStream('bundle.js'));

install

npm i brjade

Downloadsweekly downloads

1

version

0.0.4

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability