Relative Content

Tag Archive for node.jsmongodbejs

Rendering and sending data to EJS template

I am a newbie NodeJS developer and I am trying to fetch data from MongoDB and render it to another .ejs file to display it. But error showing that data is not defined in the line <% data.forEach(post => { %>

Rendering and sending data to EJS template

I am a newbie NodeJS developer and I am trying to fetch data from MongoDB and render it to another .ejs file to display it. But error showing that data is not defined in the line <% data.forEach(post => { %>

EJS email templates data from Mongo DB

How to dynamically send email content on EJS email template getting data from the database and send the email to clients based on the payment option(full payment and half payment) which they choose during their service bookings. It should check if the data that is coming from the database is half payment and send the half payment content to the client and if is full payment, it should send the full payment content to the client. using Nodejs and Mongodb