Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pugjs/brjade
Inline jade templates when browserifying
https://github.com/pugjs/brjade
Last synced: about 2 months ago
JSON representation
Inline jade templates when browserifying
- Host: GitHub
- URL: https://github.com/pugjs/brjade
- Owner: pugjs
- Created: 2015-03-28T09:46:18.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-30T03:10:05.000Z (over 9 years ago)
- Last Synced: 2024-12-03T00:18:43.510Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 156 KB
- Stars: 2
- Watchers: 9
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# brjade
A [Browserify](https://github.com/substack/node-browserify) transform to
inline the result of calls to `jade.renderFile` and `jade.render`.Heavily inspired by [brfs](https://github.com/substack/brfs).
In a script that might or might not be browserified:
```js
var jade = require('jade');jade.renderFile(__dirname + '/index.jade');
```When bundling:
```js
var fs = require('fs');
var browserify = require('browserify');
var brjade = require('brjade');browserify('index.js')
.transform(brjade)
.bundle()
.pipe(fs.createWriteStream('bundle.js'));
```