mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-04 19:56:37 +02:00
Exposed require to ejs pages!
This commit is contained in:
parent
5261ba5a69
commit
b8a4333d1b
@ -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: []});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user