Permalink
Browse files

Fixed runtime require not working.

  • Loading branch information...
1 parent 2fb302b commit e029412ef8f523af0750eef51d35b785713da3b3 @edmellum committed May 2, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −1 lib/browserijade.js
  2. +0 −3 lib/middleware.js
View
2 lib/browserijade.js
@@ -2,7 +2,7 @@
// (c) 2011 David Ed Mellum
// Browserijade may be freely distributed under the MIT license.
-jade = require('jade/runtime');
+jade = require('jade/lib/runtime');
// Render a jade file from an included folder in the Browserify
// bundle by a path local to the included templates folder.
View
3 lib/middleware.js
@@ -18,9 +18,6 @@ var browserijade = module.exports = function(templates_dir, ignores, options) {
var templates = getTemplates(templates_dir, ignores);
return function(bundle) {
- bundle.require(runtime, {target: 'jade/runtime', basedir: __dirname, root: '/'})
- bundle.ignore('jade/runtime');
-
bundle.register('.jade', function(body, fullPath) {
return preCompile(body, fullPath, options.debug);
});

0 comments on commit e029412

Please sign in to comment.