Skip to content

Commit

Permalink
Corrects error in postmark example
Browse files Browse the repository at this point in the history
This fixes #132
  • Loading branch information
jeduan committed Jul 17, 2015
1 parent 237d77b commit aa8c6da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/postmark/index.js
Expand Up @@ -30,7 +30,7 @@ var locals = {
var template = new EmailTemplate(path.join(templatesDir, 'newsletter'))

// Send a single email
template(locals, function (err, results) {
template.render(locals, function (err, results) {
if (err) {
return console.error(err)
}
Expand Down
1 change: 1 addition & 0 deletions src/email-template.js
Expand Up @@ -29,6 +29,7 @@ export default class EmailTemplate {
}

_loadTemplates () {
if (typeof this.path === 'object') {}
return P.map(['html', 'text', 'style'], (type) => {
return readContents(this.path, type)
})
Expand Down

0 comments on commit aa8c6da

Please sign in to comment.