Merge pull request #11 from ScottFreeCode/patch-1

Add strict* options to Express engine shortcut
This commit is contained in:
Jun Yang
2016-09-27 13:01:35 +08:00
committed by GitHub
+2 -2
View File
@@ -94,9 +94,9 @@ var _engine = {
});
});
},
express: function() {
express: function(renderingOptions) {
return (filePath, options, callback) => {
this.renderFile(filePath, options)
this.renderFile(filePath, options, renderingOptions)
.then(html => callback(null, html))
.catch(e => callback(e));
};