mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-20 06:50:47 -07:00
refactor: tests for tags
This commit is contained in:
@@ -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));
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user