nodemailer-express-handlebars
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -21,3 +21,3 @@ 'use strict'; | ||
this.viewEngine.renderView(templatePath, mail.data.values, function(err, body) { | ||
this.viewEngine.renderView(templatePath, mail.data.context, function(err, body) { | ||
if (err) return cb(err); | ||
@@ -24,0 +24,0 @@ |
{ | ||
"name": "nodemailer-express-handlebars", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A plugin for nodemailer that uses express-handlebars view engine to generate emails", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -35,5 +35,5 @@ # Express Handlebars plugin for Nodemailer | ||
* __template__ the name of the template file to use | ||
* __values__ 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#renderviewviewpath-optionscallback-callback) | ||
# License | ||
MIT |
@@ -30,3 +30,3 @@ 'use strict'; | ||
template: 'email', | ||
values: { | ||
context: { | ||
name: 'Name' | ||
@@ -83,3 +83,3 @@ } | ||
template: 'email', | ||
values: { | ||
context: { | ||
name: 'Name' | ||
@@ -86,0 +86,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6081