@midwayjs/view
Version:
Midway Component for render view
22 lines • 959 B
TypeScript
declare const _default: (appInfo: any) => {
/**
* view default config
* @member Config#view
* @property {String} [rootDir=${appDir}/view] - give a path to find the file, object.values() got array and find for view file
* @property {Boolean} [cache=true] - whether cache the file's path
* @property {String} [defaultExtension] - defaultExtension can be added automatically when there is no extension when call `ctx.render`
* @property {String} [defaultViewEngine] - set the default view engine if you don't want specify the viewEngine every request.
* @property {Object} mapping - map the file extension to view engine, such as `{ '.ejs': 'ejs' }`
*/
view: {
cache: boolean;
defaultExtension: string;
defaultViewEngine: string;
mapping: {};
rootDir: {
default: string;
};
};
};
export default _default;
//# sourceMappingURL=config.default.d.ts.map