I have code in app.js
var Song = db.model('Song');
var Album = db.model('Album');
I want to render to index.jade with 2 variables are list of song and list of album
I use query like this
Song.find({}, function( err, docs ){
// .........
}
Album.find({}, function( err, docs ){
// .........
}
So, what should i do to store list of song and list of album to variables and render to index.jade with 2 lists