I'm new to express framework i just want know how to render html page with some data from mongo DB i used below code to send html but not sure how to send some data
res.sendFile(path + "feature.html"); this is success as html get renders
send data like this ??
res.sendFile(path + "feature.html", {data: data});
how to display data in html ?? if i have sent an array like this
res.sendFile(path + "feature.html", {data: []});
how to loop this in html ??