mailer-q-handlebars

2.0.0 • Public • Published

MailerQ Handlebars Plugin

Installation

npm install mailer-q-handlebars --save

Usage

  • This plugin is an extension of the MailerQ module for sending email.
  • It enables MailerQ to use Handlebars templating to send email.
  • To use this extension, simply require the module and call the resulting function with the path to your email templates as an argument.

Example configuration:

const path = require("path");
const MailerQ = require("mailer-q")();
const MailerQHbs = require("mailer-q-handlebars");

const options = {
  ...otherOptionsHere,
  renderer: MailerQHbs(path.join(__dirname, "./email_templates"))
};

module.exports = MailerQ.config(options);

Readme

Keywords

none

Package Sidebar

Install

npm i mailer-q-handlebars

Weekly Downloads

0

Version

2.0.0

License

ISC

Unpacked Size

1.95 kB

Total Files

5

Last publish

Collaborators

  • arsood