You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the above use case newInlineTest partial fetches the result from block_helper2 instead of block_helper1.
However if I change the inline to {{#*inline "newInlineTest"}}{{parent.block_helper_1_attribute}}{{/inline}} then it fetches the result from block_helper1 like it is expected to.
Seems like ../ and parent. are not behaving the same way for partials with arguments
The text was updated successfully, but these errors were encountered:
And in particular, removing the {{#if true}} bit makes ../block_helper_1_attribute actually get a result from block_helper1. So the if is affecting scoping!
{{#block_helper1}}
{{#block_helper2}}
{{#if true}}
{{#*inline "newInlineTest" argumentKey="argumentValue"}}{{../block_helper_1_attribute}}{{/inline}}
{{>newInlineTest}}
{{/if}}
{{/block_helper2}}
{{/block_helper2}}
For the above use case
newInlineTest
partial fetches the result fromblock_helper2
instead ofblock_helper1
.However if I change the inline to
{{#*inline "newInlineTest"}}{{parent.block_helper_1_attribute}}{{/inline}}
then it fetches the result fromblock_helper1
like it is expected to.Seems like
../
andparent.
are not behaving the same way for partials with argumentsThe text was updated successfully, but these errors were encountered: