mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-28 22:55:14 -07:00
feature: rendering options for express
This commit is contained in:
Vendored
+2
-2
@@ -289,11 +289,11 @@ var _engine = {
|
||||
});
|
||||
});
|
||||
},
|
||||
express: function express() {
|
||||
express: function express(renderingOptions) {
|
||||
var _this3 = this;
|
||||
|
||||
return function (filePath, options, callback) {
|
||||
_this3.renderFile(filePath, options).then(function (html) {
|
||||
_this3.renderFile(filePath, options, renderingOptions).then(function (html) {
|
||||
return callback(null, html);
|
||||
}).catch(function (e) {
|
||||
return callback(e);
|
||||
|
||||
Vendored
+3
-3
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user