diff --git a/src/node/eejs/index.js b/src/node/eejs/index.js index 828ab103e..90c69e595 100644 --- a/src/node/eejs/index.js +++ b/src/node/eejs/index.js @@ -100,6 +100,7 @@ exports.require = function (name, args) { var ejspath = require.resolve(name) args.e = exports; + args.require = require; var template = '<% e._init(buf); %>' + fs.readFileSync(ejspath).toString() + '<% e._exit(); %>'; exports.info.file_stack.push({path: ejspath, inherit: []});