Support des propriétés d'items
Amélioration de l'interface Améliorations cosmétiques
This commit is contained in:
@ -56,6 +56,10 @@ export const registerHandlebarsHelpers = function () {
|
||||
return val1 || val2;
|
||||
});
|
||||
|
||||
Handlebars.registerHelper('or3', function (val1, val2, val3) {
|
||||
return val1 || val2 || val3;
|
||||
});
|
||||
|
||||
Handlebars.registerHelper('not', function (cond) {
|
||||
return !cond;
|
||||
});
|
||||
@ -100,4 +104,10 @@ export const registerHandlebarsHelpers = function () {
|
||||
return array.includes(val);
|
||||
});
|
||||
|
||||
Handlebars.registerHelper('eval', function (expr) {
|
||||
return eval(expr);
|
||||
});
|
||||
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user