This commit is contained in:
François-Xavier Guillois
2023-09-05 16:07:04 +02:00
parent 848366e05c
commit 3ceac1194e
3 changed files with 15 additions and 9 deletions
+7
View File
@@ -216,5 +216,12 @@ export const registerHandlebarsHelpers = function () {
.map(function(num) { return options.fn(num); })
.join('');
});
// return age type information
Handlebars.registerHelper('ife', function(arg1, arg2, options) {
return (arg1 == arg2) ? options.fn(this) : options.inverse(this);
});
}