express-handlebars
express-handlebars copied to clipboard
Fix for 3.0.2 which throws an error when partialsDir is not set
As of 3.0.2, the initial assignment of partialsDir is no longer defaulted to 'views/partials/'. This breaks systems which only use layoutsDir. This PR fixes this use case.
Here's a workaround in case someone runs into this https://github.com/yads/nodemailer-express-handlebars/issues/22#issuecomment-468718136