-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.default.js
27 lines (25 loc) · 913 Bytes
/
config.default.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
'use strict';
const path = require('path');
module.exports = appInfo => {
return {
/**
* @member Config#laytpl
* @property {String} [root=${baseDir}/app/view] - the root directory of laytpl 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
*/
laytpl: {
root: path.join(appInfo.baseDir, 'app/view'),
cache: true,
debug: false,
compileDebug: true,
delimiter: null,
strict: false,
open: '<%',
close: '%>',
},
};
};