diff options
Diffstat (limited to 'ui/imports/startup/client/template-helpers.js')
-rw-r--r-- | ui/imports/startup/client/template-helpers.js | 6 |
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; +}); |