We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I dont understand why I keep having this error. I'm using postmark btw
Here's my code :
var EmailTemplate = require('email-templates').EmailTemplate; var templatesDir = path.resolve(__dirname, '../templates'); var template = new EmailTemplate(path.join(templatesDir, 'register')); var locals = { url : someurl }; template(locals, function (err, results) { ... });
The problem is that template is an object and not a function ... here is what I got when I console.log(template) :
{ files : {}, path : somepath, dirname : 'register', options : {} }
The text was updated successfully, but these errors were encountered:
Hi! What version of the library are you using? Can you confirm you are on 2.0 by typing npm update?
npm update
Sorry, something went wrong.
Actually, I see the error. The postmark example is wrong. You should be using
template.render(locals, function (err, results) { ... })
aa8c6da
No branches or pull requests
Hi,
I dont understand why I keep having this error. I'm using postmark btw
Here's my code :
The problem is that template is an object and not a function ... here is what I got when I console.log(template) :
The text was updated successfully, but these errors were encountered: