Add strict* options to Express engine shortcut

One way to close #9
This commit is contained in:
Scott Santucci
2016-09-27 00:55:11 -04:00
committed by GitHub
parent 52661c04b1
commit 0a73e65d28
+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));
};