@dealerslink/node-mail-template-helper

Simple tools to merge data with email templates during run-time

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@dealerslink/node-mail-template-helper
1.1.06 years ago6 years agoMinified + gzip package size for @dealerslink/node-mail-template-helper in KB

Readme

node-mail-template-helper
node-mail-template-helper is a helper module to assist with compilation of email templates.
npm install @dealerslink/node-mail-template-helper

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.