fix: re-add handlebars-helpers

This commit is contained in:
Axel Cocat 2022-02-26 13:29:02 +01:00
parent 1fd6b326dc
commit 6ebaccc020
3 changed files with 4284 additions and 6 deletions

View file

@ -49,6 +49,7 @@ export class Armory {
partialsDir: path.join(process.cwd(), "static", "partials"),
layoutsDir: path.join(process.cwd(), "static"),
defaultLayout: "layout.html",
helpers: require("handlebars-helpers")(),
}));
app.set("view engine", "handlebars");
app.set("views", path.join(process.cwd(), "static"));