refactor: tests for tags

This commit is contained in:
harttle
2016-09-26 21:52:06 +08:00
parent afca74b238
commit ddc17a6b93
27 changed files with 724 additions and 408 deletions
+3 -6
View File
@@ -88,12 +88,9 @@ var _engine = {
},
express: function() {
return (filePath, options, callback) => {
try {
var html = this.renderFile(filePath, options);
return callback(null, html);
} catch (e) {
return callback(e);
}
this.renderFile(filePath, options)
.then(html => callback(null, html))
.catch(e => callback(e));
};
}
};