📅  最后修改于: 2022-03-11 15:00:13.691000             🧑  作者: Mango
const handlebarOptions = {
viewEngine: {
extName: '.hbs',
partialsDir: 'src/path',
layoutsDir: 'src/path',
defaultLayout: 'email.hbs',
},
viewPath: 'src/path',
extName: '.hbs',
};
transporter.use('compile', hbs(handlebarOptions));