Skip to content

Accessing root context from {{this}} context does not work #312

Closed
vuhrmeister opened this Issue Sep 14, 2012 · 2 comments

3 participants

@vuhrmeister

If I have something like the following example the "../" operator does not work:

{
    "someAttribute": "bar",
    "someList": [
        {…},{…}
    ]
}
{{#someList}}
    {{#this}}
        {{../someAttribute}}
@grignaak

Shouldn't it be ../../someAttribute? The first ../ takes you to the context of someList, the second to the root context

@wagenet
Collaborator
wagenet commented Nov 2, 2012

@grignaak is correct. ../ takes you up a context, which may or may not be the parent.

@wagenet wagenet closed this Nov 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.