Merge branch 'pr/186' into dev

This commit is contained in:
Ash Monty
2022-11-19 22:31:46 +01:00
17 changed files with 201 additions and 133 deletions

View File

@@ -138,6 +138,12 @@ app.engine('handlebars', handlebars({
},
slug(string) {
return string.toLowerCase().replaceAll(/ /g, '-');
},
section(name, options) {
if (!this._sections) this._sections = {};
if (!this._sections[name]) this._sections[name] = [];
this._sections[name].push(options.fn(this));
return null;
}
}
}));