nodemailer-express-handlebars
nodemailer-express-handlebars copied to clipboard
There is no default template
Hello! I have a problem, the plugin is looking for main.handlebars in the root of the project, and not in the folder I specified.
I can also suggest adding the possibility of disabling the mandatory default template with the defaultLayoyut: boolean parameter
I'm passing viewEngine option and it's ok:
hbs({
viewEngine: {
extname: '.handlebars',
layoutsDir: './templates',
defaultLayout: './yourDefaultTemplate',
partialsDir: './templates',
},
}
This is likely an issue with how you're using express-handlebars. This plugin does not have a defaultLayoyut
option.