mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 16:36:15 -04: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 cache = settings.maxAge !== 0;
|
||||||
const template = cache && templateCache.get(ejspath) || ejs.compile(
|
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});
|
{filename: ejspath});
|
||||||
if (cache) templateCache.set(ejspath, template);
|
if (cache) templateCache.set(ejspath, template);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue