diff --git a/src/node/eejs/index.js b/src/node/eejs/index.js index d7d8db5ff..1bf29634b 100644 --- a/src/node/eejs/index.js +++ b/src/node/eejs/index.js @@ -84,7 +84,8 @@ exports.require = (name, args, mod) => { const cache = settings.maxAge !== 0; const template = cache && templateCache.get(ejspath) || ejs.compile( - `<% e._init({get: () => __output, set: (s) => { __output = s; }}); %>${fs.readFileSync(ejspath).toString()}<% e._exit(); %>`, + '<% e._init({get: () => __output, set: (s) => { __output = s; }}); %>' + + `${fs.readFileSync(ejspath).toString()}<% e._exit(); %>`, {filename: ejspath}); if (cache) templateCache.set(ejspath, template);