update os logic

This commit is contained in:
2026-04-22 12:25:45 +02:00
parent c251b0b353
commit d73d5a3117
6 changed files with 82 additions and 26 deletions

View File

@@ -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 = '';