aboutsummaryrefslogtreecommitdiffstats
path: root/ui/imports/startup/client/template-helpers.js
diff options
context:
space:
mode:
authorKoren Lev <korenlev@gmail.com>2017-09-29 01:38:18 +0300
committerYaron Yogev <yaronyogev@gmail.com>2017-10-03 09:46:58 +0000
commitd0adff06bed72f9a0edd7adccfa6a1111784bc8b (patch)
tree4b5eaf1107e6973b1eac636309a99c83074acbfc /ui/imports/startup/client/template-helpers.js
parentfbbaf20912c79bd99a5c3696850d70c11965f56b (diff)
release 1.0 calipso for opnfv apex
Change-Id: I3e63cd27c5f4d3756e67a07c749863a68e84dde2 Signed-off-by: Koren Lev <korenlev@gmail.com> (cherry picked from commit d32f75145676bacefde0d08a14680a5984623451)
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;
+});