Skip to content

Instantly share code, notes, and snippets.

@bebraw
Created June 28, 2013 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bebraw/5886869 to your computer and use it in GitHub Desktop.
Save bebraw/5886869 to your computer and use it in GitHub Desktop.
Generic compiler plugin for james.js.
var james = require('james');
module.exports = function(options) {
return james.createStream(function(file, callback) {
callback(options.compiler.compile(file, options)(options.context));
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment