Open maxgerber opened 5 years ago
I adore the chutzpah of this - but it seems like you've essentially created your own templating engine in your server/index.js file?
I'd say for the sanity and readability of your server, it might be worth using a templating engine like Handlebars to achieve what you're doing here.
You can even use it in lieu of your email's html if you use something like nodemailer-express-handlebars!
I adore the chutzpah of this - but it seems like you've essentially created your own templating engine in your server/index.js file?
I'd say for the sanity and readability of your server, it might be worth using a templating engine like Handlebars to achieve what you're doing here.
You can even use it in lieu of your email's html if you use something like nodemailer-express-handlebars!