html-express-js 3.0.4 → 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.
- package/package.json +1 -1
- package/src/index.js +3 -7
package/package.json
CHANGED
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
|
-
|
|
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
|
};
|