I am attempting to use data from 2 different sources, but render them on the same HTML page using EJS, JS and node. This is what I am trying..
app.set('view engine', 'ejs');
app.get('/', function(req, res) {
res.render('index.ejs', { data: JSONdata })
res.render('index.ejs', {data2: arrayData})
});
data is a JSON, data2 is an array. I have attempted to look up proper syntax for this exact process but cant seem to find anything.
Many thanks.