fengmk2 610a39e7f4
👌 IMPROVE: Drop httpclient callback and thunk style (#5052)
And remove mz and mz-modules deps
2022-10-31 09:57:50 +08:00

26 lines
394 B
JavaScript

const { sleep } = require('../../../utils');
class EjsView {
async render(filename, locals, options) {
await sleep(10);
return {
filename,
locals,
options,
type: 'ejs',
};
}
async renderString(tpl, locals, options) {
await sleep(10);
return {
tpl,
locals,
options,
type: 'ejs',
};
}
}
module.exports = EjsView;