javascript - How to create invoice template(of what they ordered) using HTML/JADE and send it to user/customer in nodejs and expressjs? -


i need send customer mail consisting of items ordered. need create table in template , should iterate based on length of array of orderitems dynamically. tried use javascript in html i'm not getting it. tried jade too, don't know how fetch data controller .jade file. possible html/jade? or other solution? in advance