I'm using Total.js CMS for my blog, but I want to export the complete HTML files from the database
I tried this code to export it
NOSQL('pages').find().callback(function(err, response) {
response.forEach(function(page) {
fs.writeFileSync(__dirname+'/content/index.html', page.body);
});
});
But it only rendered the widgets that I'm using, not the full page.
How to do it properly? Thanks