Just curious if anyone has experience/opinions about performance of:
{{#each thing}}
{{> myTemplate index=@index data1=data1 data2=data2}}
{{/each}}
<template name="myTemplate">
Here is some data for result #{{index}}: {{data1}}, {{data2}}.
</template>
versus
{{#each thing}}
{{#let index=@index}}
{{> myTemplate}}
{{/let}}
{{/each}}
<template name="myTemplate">
Here is some data for result #{{../index}}: {{../data1}}, {{../data2}}.
</template>
I guess my real question is – does passing data actually pass it, or just create a reference and what are the implications performance-wise?