pugjs/brjade

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

Homepage:

Size: 160

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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:

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'));

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.