codehooks-js 1.2.10 → 1.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/webserver.mjs +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codehooks-js",
3
- "version": "1.2.10",
3
+ "version": "1.2.11",
4
4
  "type": "module",
5
5
  "description": "Codehooks.io official library - provides express.JS like syntax",
6
6
  "main": "index.js",
package/webserver.mjs CHANGED
@@ -157,7 +157,7 @@ async function handlebars(viewFile, data, settings, cb) {
157
157
  if (layout) {
158
158
  const layoutPath = `${layout}`;
159
159
  //console.log('Layout path', layoutPath)
160
- const layoutFile = await _coho_fs.readFile(layoutPath);
160
+ const layoutFile = await _coho_fs.readFile(layoutPath, {source: true});
161
161
  //console.log('Layout file', layoutFile)
162
162
  engine.registerPartial('layout', layoutFile);
163
163
  }