aboutsummaryrefslogtreecommitdiffstats
path: root/ui/imports/startup/client/template-helpers.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/imports/startup/client/template-helpers.js')
-rw-r--r--ui/imports/startup/client/template-helpers.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/imports/startup/client/template-helpers.js b/ui/imports/startup/client/template-helpers.js
index 89023b6..23eaf50 100644
--- a/ui/imports/startup/client/template-helpers.js
+++ b/ui/imports/startup/client/template-helpers.js
@@ -30,3 +30,9 @@ Template.registerHelper('countOf', function (name) {
return Counter.get(name);
}
});
+
+
+Template.registerHelper('jsonAsString', function (val) {
+ let str = JSON.stringify(val, null, 4);
+ return str;
+});