nodemailer-handlebars
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "nodemailer-handlebars", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A plugin for nodemailer that uses express-handlebars view engine to generate emails", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,3 +7,3 @@ # Express Handlebars plugin for Nodemailer | ||
```bash | ||
npm install nodemailer-express-handlebars | ||
npm install nodemailer-handlebars | ||
``` | ||
@@ -13,3 +13,3 @@ # Usage | ||
//reference the plugin | ||
var hbs = require('nodemailer-express-handlebars'); | ||
var hbs = require('nodemailer-handlebars'); | ||
//attach the plugin to the nodemailer transporter | ||
@@ -31,3 +31,3 @@ transporter.use('compile', hbs(options)); | ||
The plugin expects the following options: | ||
* __viewEngine (required)__ either the express-handlebars view engine instance or [options for the view engine](https://github.com/ericf/express-handlebars#configuration-and-defaults) | ||
* __viewEngine (required)__ either the express-handlebars view engine instance or [options for the view engine](https://github.com/accimeesterlin/nodemailer-express-handlebars#configuration-and-defaults) | ||
* __viewPath (required)__ provides the path to the directory where your views are | ||
@@ -39,5 +39,5 @@ * __extName__ the extension of the views to use (defaults to `.handlebars`) | ||
* __template__ the name of the template file to use | ||
* __context__ this will be passed to the view engine as the context as well as view engine options see [here](https://github.com/ericf/express-handlebars#renderviewviewpath-optionscallback-callback) | ||
* __context__ this will be passed to the view engine as the context as well as view engine options see [here]([https://github.com/ericf/express-handlebars](https://github.com/accimeesterlin/nodemailer-express-handlebars)#renderviewviewpath-optionscallback-callback) | ||
# License | ||
MIT |
6371