|
|
|
@ -92,9 +92,12 @@ app.get('/view/:baseView', async (req, res) => { |
|
|
|
return res.send(data.errorMessage); |
|
|
|
} |
|
|
|
|
|
|
|
const blockName = config.has('blockName') ? config.get('blockName') : 'development'; |
|
|
|
|
|
|
|
data.helpers = { |
|
|
|
include_partial: (path) => projectDir + path, |
|
|
|
include_block_template: (path) => 'src/' + (config.has('blockName') ? config.get('blockName') : 'development') + '.template', |
|
|
|
include_block_template: (path) => `src/${blockName}.template`, |
|
|
|
section_class: `${blockName}--${jsonFileName}` |
|
|
|
} |
|
|
|
|
|
|
|
const baseView = req.params.baseView ?? 'container'; |
|
|
|
|