title: Pass variable into nested jquery template
body: <pre><code>&lt;script id="mainTemplate" type="text/x-jquery-tmpl"&gt;
  
  {{each(i, wrapSpec) data}}
  
  &lt;div id="pkgLineTabs_{{= wrapSpec.wrapSpecId}}" style="font-size:12px" 
       class="reportTable display {{= wrapSpec.wrapSpec2.pkgLineId.hash}}" title="{{= wrapSpec.wrapSpec2.pkgLineId.hash}}" &gt;  
  
      {{tmpl(wrapSpec.report) "#dayTemplate"}} &lt;!-- need to pass avgOunces variable !--&gt;
  
  &lt;/div&gt;  
  
  {{/each}}
  </code></pre>
  
  <p></p>
  
  <pre><code>   &lt;script id="dayTemplate" type="text/x-jquery-tmpl"&gt;
  
  &lt;!-- need avgOunces variable down here !--&gt;
  
  
      &lt;br /&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>Ok say I have a template like this.  In the nested template call I want to pass a variable that the first template has so it has access to that variable.  How would I go about doing that?  Thanks for the help.</p>