lint: eejs/index.js

This commit is contained in:
John McLear 2021-02-21 19:51:28 +00:00 committed by Richard Hansen
parent 3ed4ac649c
commit d67f170c46
1 changed files with 2 additions and 1 deletions

View File

@ -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);