✨
This commit is contained in:
@@ -52,6 +52,13 @@ function preloadHandlebarsTemplates() {
|
||||
|
||||
function registerHandlebarsHelpers() {
|
||||
|
||||
Handlebars.registerHelper("symbol", function(s1) {
|
||||
if (s1 == 0.5 || s1 == 0.25) {
|
||||
return "½";
|
||||
}
|
||||
return s1;
|
||||
});
|
||||
|
||||
Handlebars.registerHelper("upper", function(s1) {return s1.toUpperCase()});
|
||||
|
||||
Handlebars.registerHelper("short", function(s1) {return s1.slice(0,3).toUpperCase()});
|
||||
|
||||
Reference in New Issue
Block a user