Browse Source

Added `base_url` parameter.

test-gpt-generated
Roman Axelrod 3 years ago
parent
commit
212e0a414b
  1. 3
      server.js

3
server.js

@ -97,7 +97,8 @@ app.get('/view/:baseView', async (req, res) => {
data.helpers = {
include_partial: (path) => projectDir + path,
include_block_template: (path) => `src/${blockName}.template`,
section_class: `${blockName}--${jsonFileName}`
section_class: `${blockName}--${jsonFileName}`,
base_url: '/'
}
const baseView = req.params.baseView ?? 'container';

Loading…
Cancel
Save