feature: rendering options for express

This commit is contained in:
harttle
2016-09-27 13:07:04 +08:00
parent fe049b48e2
commit 1e1b6e8cc3
4 changed files with 14 additions and 8 deletions
+2 -2
View File
@@ -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);
+3 -3
View File
File diff suppressed because one or more lines are too long