-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
@key in default helper in partial is undefined #41
Labels
Comments
@spenat28 Thanks for the issue! If you're reporting a bug, please be sure to include:
|
I've tested some things out:
{{#each projects}}
{{@key}}: {{this.data}}
{{/each}}
{{> each-partial }} someKey:Test data line
otherKey:Other data line
someKey:Test data line
otherKey:Other data line
{{> each-partial }} :Test data line
:Other data line I'm not sure of the exact cause of this yet, but I labeled it as a bug so someone can take a look. |
@spenat28 I just published |
@doowb great it resolved this issue. Thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
i have an issue with default helper
EACH
and undefined@key
- maybe I am doing something wrong but not sure what.I have some data file - in JSON.
Its loaded and has following structure:
I have pages and partials, its okay and working just fine on multiple projects. When i use this code in page:
It renders correctly headers with text "someKey", "otherKey". And text "Test data line", ...
When i move this into partial and use same code, it renders *empty * headers, and text "Test data line" (this is okay) ... i assume they are undefined. But why, and why exactly is it working differently than in page itself?
Code of my page - which extends almost empty layout (my layout seem not important for current issue)
In this i had originaly each block - which was working and when i moved it into separate partial like this - its not working anymore ...
Can You help me? Thanks.
Maybe its an issue, maybe my misunderstanding of something.. ..
I am using version provided by "grunt-assemble": "^0.4.0"
my assemble task pastebin
The text was updated successfully, but these errors were encountered: