Handlebars: Parse JSON array with a new line character
Is there a way to add new line character after each value of a json variable which is an array in Handlebar command ?
For example JSON Array variable,
["A","B","C"]
How can this be displayed as :
A
B
C
Hi Ankit,
Handlebars actually uses the mustache language so you can use <br> (html code for a line feed) to create what you are trying to do.
Let me know if this works for you.
Tony
Thanks for the direction. I got it looking up the mustache language expressions.
Thanks
Ankit S
Hi Ankit - this article might also help as well: https://support.onecloud.io/support/discussions/topics/48000558868. It will iterate over elements in a JSON List and output a line for each.