2.0.0 • Published 3 years ago

mailer-q-pug v2.0.0

Weekly downloads
5
License
ISC
Repository
github
Last release
3 years ago

MailerQ Pug Plugin

Installation

npm install mailer-q-pug --save

Usage

  • This plugin is an extension of the MailerQ module for sending email.
  • It enables MailerQ to use Pug 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 MailerQPug = require("mailer-q-pug");

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

module.exports = MailerQ.config(options);
2.0.0

3 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago