diff --git a/index.js b/index.js index fcca2ff..146f7bf 100644 --- a/index.js +++ b/index.js @@ -30,10 +30,20 @@ app.get('/', function(req, res){ data.forEach(el => { console.log(el.class) }) - - - // res.sendFile(__dirname + '/views/index.html'); - res.render('index') + res.render('index', { + instances: [ + { + name: 'Test', + level: 1000 + + }, + { + name: 'Tes2t', + level: 10200 + + } + ] + }) } else console.error('HTTP ERROR ' + response.statusCode + '') }); }) diff --git a/views/index.hbs b/views/index.hbs index 466727c..5c18f74 100644 --- a/views/index.hbs +++ b/views/index.hbs @@ -12,12 +12,14 @@