Added base_url parameter.
This commit is contained in:
@@ -97,7 +97,8 @@ app.get('/view/:baseView', async (req, res) => {
|
|||||||
data.helpers = {
|
data.helpers = {
|
||||||
include_partial: (path) => projectDir + path,
|
include_partial: (path) => projectDir + path,
|
||||||
include_block_template: (path) => `src/${blockName}.template`,
|
include_block_template: (path) => `src/${blockName}.template`,
|
||||||
section_class: `${blockName}--${jsonFileName}`
|
section_class: `${blockName}--${jsonFileName}`,
|
||||||
|
base_url: '/'
|
||||||
}
|
}
|
||||||
|
|
||||||
const baseView = req.params.baseView ?? 'container';
|
const baseView = req.params.baseView ?? 'container';
|
||||||
|
|||||||
Reference in New Issue
Block a user