Added base_url parameter.

This commit is contained in:
2022-10-21 10:42:46 +03:00
parent e407dcd0ca
commit 212e0a414b
+2 -1
View File
@@ -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';