mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-20 23:10:41 -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) => {
|
return (filePath, options, callback) => {
|
||||||
this.renderFile(filePath, options)
|
this.renderFile(filePath, options, renderingOptions)
|
||||||
.then(html => callback(null, html))
|
.then(html => callback(null, html))
|
||||||
.catch(e => callback(e));
|
.catch(e => callback(e));
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user