From 0c720448abd3464e0877d7728ab7da1f724bab74 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Fri, 31 Jul 2015 11:49:19 +0100 Subject: [PATCH] debugging braider --- lifestyle.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lifestyle.js b/lifestyle.js index 6b4a2fd..c2bb349 100644 --- a/lifestyle.js +++ b/lifestyle.js @@ -205,10 +205,12 @@ var rss_braider = RssBraider.createClient(braider_options); rss_braider.logger.level('off'); rss_braider.processFeed('simple_test_feed', 'json', function (err, data) { + console.log('A'); if (err) { return console.log(err); } + console.log('B'); var j; try{ j = JSON.parse(data); @@ -218,8 +220,11 @@ rss_braider.processFeed('simple_test_feed', 'json', function (err, data) { console.log('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'); } - var ejsOutput = ejs.compile(str)(j); + console.log('C'); + //var ejsOutput = ejs.compile(str)(j); + + console.log('D'); fs.writeFile(__dirname + "/html/" + outputFile + ".json", data, function (err) { if (err) { return console.log(err); @@ -228,6 +233,7 @@ rss_braider.processFeed('simple_test_feed', 'json', function (err, data) { console.log("The file was saved!"); }); + /*fs.writeFile(__dirname + "/html/" + outputFile + ".html", ejsOutput, function (err) { if (err) {