Closed xquezme closed 9 years ago
Have you tried using ../links
or ../../links
?
<nav class="app-nav {{#block 'navClassName' mode='append'}}{{/block}}">
<ul>
{{#each ../links}}
<li>{{intlGet labelPath}}</li>
{{/each}}
</ul>
</nav>
Sure. Links not nested in this case.
<nav class="app-nav {{#block 'navClassName' mode='append'}}{{/block}}">
<ul>
{{#each links}}
<li>{{log labelPath}}</li>
{{/each}}
</ul>
</nav>
Working as expected. Problem with intlGet helper, which required 'intl' object in options.
precompiledTemplate({
links:[]
}, {
data: {
intl: LOCALE_CONTENT_HERE
}
})
Glad to see you got it worked out.
In fact the problem didn't go away.
The options argument you recommend using in your PR isn't the way to go here. Any data passed that way gets prefixed with "@" and the helpers and partials are already in the global context.
http://handlebarsjs.com/execution.html
I'll need to throw together a test case, or see a gist of the relevant bits of your project, to see what's really happening.
@xquezme Any chance the latest release fixes your issue?
Nope.
Ok. Just released 3.1.2 which I hope will also fix your issue. Mind taking another look?
Not working:
Workaround:
See intlGet helper description