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
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 arguments