UNPKG

@midwayjs/view-ejs

Version:

Midway Component for ejs render

25 lines 1.04 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const path = require("path"); exports.default = appInfo => { return { /** * @member Config#ejs * @property {String} [root=${appDir}/view] - the root directory of ejs files * @property {Boolean} [cache=true] - compiled functions are cached, only work using `ctx.render` * @property {Boolean} [debug=false] - output generated function body * @property {Boolean} [compileDebug=true] - when false no debug instrumentation is compiled * @property {String} [delimiter] - character to use with angle brackets for open/close * @property {Boolean} [strict=false] - when set to true, generated function is in strict mode */ ejs: { root: path.join(appInfo.appDir, 'view'), cache: true, debug: false, compileDebug: true, delimiter: null, strict: false, }, }; }; //# sourceMappingURL=config.default.js.map