html-express-js 3.0.5 → 3.0.6

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/src/index.js +3 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "html-express-js",
3
- "version": "3.0.5",
3
+ "version": "3.0.6",
4
4
  "description": "An Express template engine to render HTML views using native JavaScript",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/index.js CHANGED
@@ -163,13 +163,9 @@ export default function (opts) {
163
163
  });
164
164
  },
165
165
  engine: async (filePath, data, callback) => {
166
- const html = await renderHtmlFile(
167
- filePath,
168
- {},
169
- {
170
- includesDir,
171
- },
172
- );
166
+ const html = await renderHtmlFile(filePath, data, {
167
+ includesDir,
168
+ });
173
169
  return callback(null, html);
174
170
  },
175
171
  };