Answer the question
In order to leave comments, you need to log in
How to loop through an array in handlebars?
Gentlemen, good day to all. There is a task to sort out JSON in Handlebars.
Structure https://dumpz.org/2732853/
It is necessary, it turns out, to output, in a separate block, each object array -> [0], [1] containing arrays with data
I was tormented to look for how to draw a conclusion by indexes.
Did it like this:
{{#each array}}
{{#each this}}
{{@index}} {{this}}
{{/each}}
{{/each}}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question