fix: re-add handlebars-helpers
This commit is contained in:
parent
1fd6b326dc
commit
6ebaccc020
3 changed files with 4284 additions and 6 deletions
4286
package-lock.json
generated
4286
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "azerothcore-armory",
|
"name": "azerothcore-armory",
|
||||||
"version": "0.6.0",
|
"version": "0.6.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc -p tsconfig.json",
|
"build": "tsc -p tsconfig.json",
|
||||||
|
|
@ -34,6 +34,7 @@
|
||||||
"express-handlebars": "^6.0.2",
|
"express-handlebars": "^6.0.2",
|
||||||
"glob": "^7.2.0",
|
"glob": "^7.2.0",
|
||||||
"glob-promise": "^4.2.2",
|
"glob-promise": "^4.2.2",
|
||||||
|
"handlebars-helpers": "^0.9.8",
|
||||||
"mkdirp": "^1.0.4",
|
"mkdirp": "^1.0.4",
|
||||||
"mysql2": "^2.3.3",
|
"mysql2": "^2.3.3",
|
||||||
"node-fetch": "^2.6.7",
|
"node-fetch": "^2.6.7",
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,7 @@ export class Armory {
|
||||||
partialsDir: path.join(process.cwd(), "static", "partials"),
|
partialsDir: path.join(process.cwd(), "static", "partials"),
|
||||||
layoutsDir: path.join(process.cwd(), "static"),
|
layoutsDir: path.join(process.cwd(), "static"),
|
||||||
defaultLayout: "layout.html",
|
defaultLayout: "layout.html",
|
||||||
|
helpers: require("handlebars-helpers")(),
|
||||||
}));
|
}));
|
||||||
app.set("view engine", "handlebars");
|
app.set("view engine", "handlebars");
|
||||||
app.set("views", path.join(process.cwd(), "static"));
|
app.set("views", path.join(process.cwd(), "static"));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue