mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-17 05:10:40 -07:00
Merge pull request #11 from ScottFreeCode/patch-1
Add strict* options to Express engine shortcut
This commit is contained in:
@@ -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));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user