Hi folks, we've been working on a project where we need to store email templates that a user will create with some parts of it dynamic like subject, addressee, some links. Once saved it can be sent to multiple users by populating the dynamic part with the right data. My initial thoughts are storing minified EJS templates in MongoDb (or any other DB) as text.When we need to send it we'll load the ejs template from db, compile it, populate data and send it.For the user to modify/create the template in a React application, we load/create the ejs template in the application, let user edit some parts of it and send it over to a db.We are evaluating different templating engines (ejs, jade, pug, etc.) at the moment to see which one would fit the use case. If none found we might roll out our own template engine. I wonder how services like SendGrid, SendInBlue does that?Any suggestions or advice is appreciated. Thanks!
Submitted June 15, 2020 at 08:56PM by tusharf5
No comments:
Post a Comment