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

Handlebars parent of parent not possible #19

Open
LOK-Soft opened this issue Jul 9, 2015 · 1 comment
Open

Handlebars parent of parent not possible #19

LOK-Soft opened this issue Jul 9, 2015 · 1 comment

Comments

@LOK-Soft
Copy link

LOK-Soft commented Jul 9, 2015

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

@LOK-Soft
Copy link
Author

LOK-Soft commented Oct 1, 2015

implementation see merkle-open/TerrificNet@77eeabb

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