This commit is contained in:
Nikolaj
2025-08-05 10:15:03 +02:00
parent 38e52a3371
commit ce5c9534b4
7 changed files with 84 additions and 55 deletions

View File

@@ -52,6 +52,8 @@ function preloadHandlebarsTemplates() {
function registerHandlebarsHelpers() {
Handlebars.registerHelper("short", function(s1) {return s1.slice(0,3).toUpperCase()});
Handlebars.registerHelper("equals", function(v1, v2) { console.log("v1: "+v1+"\nv2: "+v2); return (v1 === v2)});
Handlebars.registerHelper("contains", function(element, search) { return (element.includes(search))});