title: Get value from parent template
body: <p>I am using jQuery Tmpl and Knockout. I have templates:</p>
  
  <p><strong>Template 1</strong>:</p>
  
  <pre><code>{{each (index, model) Models}}
  &lt;div data-bind="template: 'template2', foreach: model.SubModels"&gt;&lt;/div&gt;
  {{/each}}
  </code></pre>
  
  <p><strong>Template 2</strong>:</p>
  
  <pre><code>&lt;div&gt;${FieldFromSubModel} {__Here i need index from template 1__}&lt;/div&gt;
  </code></pre>
  
  <p>How can I pass index variable to the second tempalate? </p>
  
  <p><em>Please note, my templates are far more complex, so the structure should stay as it is.</em></p>