Closed abovedave closed 6 years ago
Existing page.json
configs need to change:
From
"settings": {
"keepWhitespace": true
}
To
"settings": {
"engine": {
"keepWhitespace": true
}
}
Worth updating the dust module too:
https://github.com/dadi/web-dustjs/blob/756f0758e3dbb880534b8c93abc06ebe5a159a8a/index.js#L217-L221
After which it can become the native dust setting of whitespace
:
"settings": {
"engine": {
"whitespace": true
}
}
This could be useful for engine-makers to allow additional page-level configurations. It will also get rid of this lingering Dust configuration param we have in core:
https://github.com/dadi/web/blob/8815d4a2b47c9087ce62eeceb818cef0bf4a7fe2/dadi/lib/view/index.js#L44