Create, preview (browser/iOS Simulator), and send custom email templates for Node.js. Made for @forwardemail, @ladjs, @cabinjs, @spamscanner, and @breejs.
Then I change name of html.pug to html.njk and then get error:
views: {
options: {
extension: 'njk'
}}
Error: No content was passed for subject, html, text, nor attachments message props. Check that the files for the template "feedback" exist. at /home/alex/mail_server/node_modules/email-templates/lib/index.js:266:167 at Generator.next (<anonymous>) at asyncGeneratorStep (/home/alex/mail_server/node_modules/email-templates/lib/index.js:11:103) at _next (/home/alex/mail_server/node_modules/email-templates/lib/index.js:13:194) at <anonymous>
What's going on, is this not accept any other template engine?
Then I change name of html.pug to html.njk and then get error: views: { options: { extension: 'njk' }}
Error: No content was passed for subject, html, text, nor attachments message props. Check that the files for the template "feedback" exist. at /home/alex/mail_server/node_modules/email-templates/lib/index.js:266:167 at Generator.next (<anonymous>) at asyncGeneratorStep (/home/alex/mail_server/node_modules/email-templates/lib/index.js:11:103) at _next (/home/alex/mail_server/node_modules/email-templates/lib/index.js:13:194) at <anonymous>
What's going on, is this not accept any other template engine?