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

4286
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
{
"name": "azerothcore-armory",
"version": "0.6.0",
"version": "0.6.1",
"description": "",
"scripts": {
"build": "tsc -p tsconfig.json",
@ -34,6 +34,7 @@
"express-handlebars": "^6.0.2",
"glob": "^7.2.0",
"glob-promise": "^4.2.2",
"handlebars-helpers": "^0.9.8",
"mkdirp": "^1.0.4",
"mysql2": "^2.3.3",
"node-fetch": "^2.6.7",

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"));