const handlebarsConfig = handlebars.create({
layoutsDir: path.join(__dirname, "views", "layouts"),
partialsDir: path.join(__dirname, "views", "partials"),
defaultLayout: "main",
extname: "hbs"
});
app.engine("hbs", handlebarsConfig.engine);