Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Handlebars parent of parent not possible #19

Description

@LOK-Soft

Hi,
I got an parsing issue with the Handlebars I am not able to solve.
I have the following data structure:

{
    "testtext": "test",
    "entries": [
        {
             "output": "test2",
             "subentries": [
                 {
                     "output": "test3"
                 }
             ]
        }
    ]
}

and the following handlesbars template

{{#each entries}}
    {{output}} - {{../testtext}}
    {{#each subentries}}
        {{output}} - {{../../testtext}}
    {{/each}}
{{/each}}

The first testtext is displayed as I expect, the second one (in the subentry-each) is not displayed, it seems the veil-parser can't handle this kind of context traversing, while "normal" handelbars would do (i checked at http://tryhandlebarsjs.com/).
Do you have an idea how to solve this problem?

Thanks in advance

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions