@dealerslink/node-mail-template-helper
v1.1.0
Published
Simple tools to merge data with email templates during run-time
Downloads
3
Readme
node-mail-template-helper
node-mail-template-helper
is a helper module to assist with compilation of email templates.
Installation
npm install @dealerslink/node-mail-template-helper
Usage
const MailTemplatesHelper = require('@dealerslink/node-mail-template-helper');
const templates = {
['Test2']: {
subject: '{testData1} {testData2}',
template: '{bodyData} - {testData2} -- {embedded.value}'
}
};
const mailTemplateHelper = new MailTemplatesHelper(templates);
See wiki for more details.