I have an app which stores user-generated email template in DB & not as .hbs file. The template uses same delimiters as handlebar.
How can I render this template?
Say user has created an invoice email template (using CKEditor & exposed template variables) which I am supposed to send at the time of creating an invoice. I will be saving this template in DB TEXT. Now how do I initialize this template & send the mail.
I have an app which stores user-generated email template in DB & not as .hbs file. The template uses same delimiters as handlebar.
How can I render this template?
Say user has created an invoice email template (using CKEditor & exposed template variables) which I am supposed to send at the time of creating an invoice. I will be saving this template in DB TEXT. Now how do I initialize this template & send the mail.
plz refer my question in another form here http://stackoverflow.com/questions/33872486/freshbook-style-email-template-using-nodejs