Closed christianrochford closed 8 years ago
I'm not sure if I'm interpreting correctly but this seems like more of a twig question. I'm not familiar with twig.
Sorry typo on my part, been using twig a lot lately, its a handlebars question https://github.com/bjorn2404/jQuery-Store-Locator-Plugin/blob/master/dist/assets/js/plugins/storeLocator/templates/location-list-description.html I'm trying to loop through a nested json object within this template
Ah, ok you'll probably want to look at the each block helper: http://handlebarsjs.com/builtin_helpers.html#iteration
Perfect, I've got that working now, thanks!
More of a request than an issue. I need to create a nested json object within my locations file, however, the twig used within the project doesn't seem to allow for looping through a json array, e.g.
I'm quite new to twig so am not sure how this may be achieved. I've created my nested json object but have no way to output the data. I've found this option http://stackoverflow.com/questions/11841515/twig-iterate-over-object-properties but am not sure how to get the twig filter in place to allow for looping through the data. Thanks a lot!