-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfig.default.js
31 lines (29 loc) · 1.1 KB
/
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
28
29
30
31
'use strict';
const path = require('path');
module.exports = appInfo => ({
/**
* handlebars default config
* More http://handlebarsjs.com/reference.html
* @member
* @property {Boolean} [data=true] set to false to disable data tracking.
* @property {Boolean} [compat=true] set to true to enable recursive field lookup.
* @property {Boolean} [noEscape=false] set to true to not HTML escape any content.
* @property {Boolean} [knownHelpers=false] optimize a number of cases.
* @property {Boolean} [knownHelpersOnly=true] prevent indent
* @property {Boolean} [strict=false] run in strict mode
* @property {Boolean} [explicitPartialContext=true]
* @property {Boolean} [ignoreStandalone=true] When the value is true,disables standalone tag
* @property {String} [partialsPath] full path to partials directory
*/
handlebars: {
data: true,
compat: true,
noEscape: false,
knownHelpers: false,
knownHelpersOnly: true,
strict: false,
explicitPartialContext: true,
ignoreStandalone: true,
partialsPath: path.join(appInfo.baseDir, 'app/view/partials'),
},
});