Is it best to use data in a template?

I am wondering what solutions to fill in the data for the template. Right now we are storing email templates in a datatabse with the owners of the places in them. When we need to send emails, we will replace the actual value for the place owner. This solution works, except that it is very difficult to debug.

Thanks in advance.

Angela

+3
source share
1 answer

If you're looking for a more structured and programmatic way to submit templates, you can look at XML, XSD, and XSLT. You will have a well-defined template mechanism that will offer you repetitive and conditional functions. Determining the appropriate XML schema and checking its opposition will allow you to catch errors while generating your emails.

+3
source

Source: https://habr.com/ru/post/1733054/


All Articles