Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for iterating over lists containing maps? #24

Open
hobertro opened this issue May 22, 2023 · 0 comments
Open

Support for iterating over lists containing maps? #24

hobertro opened this issue May 22, 2023 · 0 comments

Comments

@hobertro
Copy link

It looks like there is support for iterating over arrays containing objects in the Mustache documentation.

From the docs:

Template:

{{#repo}}
  <b>{{name}}</b>
{{/repo}}
Hash:

{
  "repo": [
    { "name": "resque" },
    { "name": "hub" },
    { "name": "rip" }
  ]
}
Output:

<b>resque</b>
<b>hub</b>
<b>rip</b>

However, it does not look like this library supports iterating over lists containing maps when rendering the template. Just wondering if this is indeed the case? Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant