From b8a4333d1bf699725ae5df578a90417e045cd168 Mon Sep 17 00:00:00 2001 From: Egil Moeller Date: Thu, 22 Mar 2012 18:34:38 +0100 Subject: [PATCH] Exposed require to ejs pages! --- src/node/eejs/index.js | 1 + 1 file changed, 1 insertion(+) 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: []});