update os logic
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
module.exports = {
|
||||
renderPartial: function(app, view, data = {}) {
|
||||
return new Promise((resolve, reject) => {
|
||||
app.render(view, data, (err, html) => {
|
||||
if (err) return reject(err);
|
||||
resolve(html);
|
||||
});
|
||||
});
|
||||
},
|
||||
// objectTree: function(context, options) {
|
||||
// let ret = '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user