Name: brjade
Owner: Pug
Description: Inline jade templates when browserifying
Created: 2015-03-28 09:46:18.0
Updated: 2016-04-28 05:04:44.0
Pushed: 2015-09-30 03:10:05.0
Size: 160
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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:
jade = require('jade');
.renderFile(__dirname + '/index.jade');
When bundling:
fs = require('fs');
browserify = require('browserify');
brjade = require('brjade');
serify('index.js')
.transform(brjade)
.bundle()
.pipe(fs.createWriteStream('bundle.js'));