Ajout de helper "accord"

pour accorder selon le genre
This commit is contained in:
Vincent Vandemeulebrouck
2021-02-25 02:00:27 +01:00
parent eaeb164627
commit 382ea2c485
2 changed files with 39 additions and 7 deletions

View File

@ -274,6 +274,7 @@ export class RdDUtility {
Handlebars.registerHelper('upper', str => str?.toUpperCase() ?? 'NULL');
Handlebars.registerHelper('le', str => Grammar.articleDetermine(str));
Handlebars.registerHelper('un', str => Grammar.articleIndetermine(str));
Handlebars.registerHelper('accord', (genre, ...args) => Grammar.accord(genre, args));
return loadTemplates(templatePaths);
}