I have a file in app.js which is being passed to handlebars for displaying the output.
The data in the file is of the format abc,Siva,Naga,def, etc.., that is every name is separated by comma(,).But,I want the data to be printed on each line separately i.e
abc Siva Naga Def
I tried using various approaches like using the helpers in handle bars ,<\br> syntax but none of them works.Reason might be handlebars treat all the data as a single object rather than array of objects.
Is there any way to fix this issue.
Aucun commentaire:
Enregistrer un commentaire