monkberrify
v4.0.8
Published
Browserify transform for monkberry
Downloads
12
Readme
Monkberrify
npm install monkberrify --save
Example
If your are using Gulp:
gulp.task('default', function() {
gulp.src('app.js')
.pipe(browserify({
transform: [monkberrify],
debug: true
}))
.pipe(rename('bundle.js'))
.pipe(gulp.dest('.'))
});
app.js:
var Monkberry = require('monkberry');
var Template = require('./view.monk');
var view = Monkberry.render(Template, document.body);
By default monkberrify will apply to .monk
files. To add your own extension override pattern:
monkberrify.pattern = /\.monk$/;