diff --git a/lib/ejs.js b/lib/ejs.js index c8cf6149..ce2b6694 100644 --- a/lib/ejs.js +++ b/lib/ejs.js @@ -1,4 +1,3 @@ - /*! * EJS * Copyright(c) 2012 TJ Holowaychuk @@ -351,7 +350,7 @@ if (require.extensions) { require.extensions['.ejs'] = function (module, filename) { filename = filename || module.filename; var options = { filename: filename, client: true } - , template = fs.readFileSync(filename).toString() + , template = read(filename).toString() , fn = compile(template, options); module._compile('module.exports = ' + fn.toString() + ';', filename); };