I have an application that has email notifications that use HTML templates. Design spec says that the templates need to live in the DB. The DB is behind a rest service. If you try to POST a straight up HTML string that contains certain chars it fails. Barring any automatic way to clean up these strings it becomes a timely and tedious process prone to errors.
My question is, what is the best way to accomplish this? What are the major steps and things to consider. I see a ton of example of using handlebars and other templating libraries but that is only part of the solution.
My app consists of SQL DB, Node.js REST service, the email templates are utilized by the same middle tier, triggered by events in the AngularJS UI.
via haakon319
No comments:
Post a Comment