Skip to content
Browserify transform for monkberry
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
.gitignore
.npmignore
README.md
index.js
package.json

README.md

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$/;
You can’t perform that action at this time.