Have you imported JSON? If not, in the JS rendering, add the variable:
list: JSON.parse(fs.readFileSync('list.json'))
If you use it several times, add a variable at the top of the file instead.
var LIST = JSON.parse(fs.readFileSync('list.json'))
You can also use the asynchronous method, but you need some attachment:
fs.readFile('list.json', function(err, list) { env.render('template.html', { list: list,
source share