mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
lint: eejs/index.js
This commit is contained in:
parent
3ed4ac649c
commit
d67f170c46
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue