Answer the question
In order to leave comments, you need to log in
How can I display this in the handlebars template engine?
Here is my json
{"comment":[{"id":"1299","parent_id":"1305"},{"id":"1299","parent_id":"1305"}]}
{{#each comments}}
<p>{{id}}</p>
<p>{{parent_id}}</p>
{{/each}}
<h1>{{id}}</h1>
{{#each comments}}
<p>{{id}}</p>
<p>{{parent_id}}</p>
{{/each}}
Это возможно посредством handlebars?
Answer the question
In order to leave comments, you need to log in
{{ comments/1/id }}, but in my opinion it is impossible to jump in the array in handlebas.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question