mirror of
https://github.com/eggjs/egg.git
synced 2024-12-04 07:14:30 +00:00
26 lines
394 B
JavaScript
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;
|