title: jsrender: nesting templates with {{each}}
body: <p>I have this piece of code in my template:</p>
  
  <pre><code>{{each(i, service) package_services}}
                  &lt;tr&gt;
                      &lt;td class="mini2"&gt;${service.name}&lt;/td&gt;
                      &lt;td class="mini2 right"&gt;${service.price}&lt;/td&gt;
                      &lt;td class="mini2 right" &gt;${service.duration}&lt;/td&gt;
                      &lt;td class="mini2 right" &gt;${service.max_products}&lt;/td&gt;
                      &lt;td class=""&gt;&lt;a href="#" rel="" class="remove_package_service tipsyn" title="Odstrani moderatorja"&gt;&lt;img src="/media/icons/no_14.png" /&gt;&lt;/a&gt;&lt;/td&gt;
                  &lt;/tr&gt;
  {{/each}}
  </code></pre>
  
  <p>and I have this sub template defined too:</p>
  
  <pre><code>&lt;script id="row_tmpl_package_service" type="text/x-jquery-tmpl"&gt;
      &lt;tr&gt;
          &lt;td class="mini2"&gt;${service.name}&lt;/td&gt;
          &lt;td class="mini2 right"&gt;${service.price}&lt;/td&gt;
          &lt;td class="mini2 right"&gt;${service.duration}&lt;/td&gt;
          &lt;td class="mini2 right"&gt;${service.max_products}&lt;/td&gt;
          &lt;td class=""&gt;&lt;a href="#" rel="" class="remove_package_service tipsyn" title="Odstrani moderatorja"&gt;&lt;img src="/media/icons/no_14.png" /&gt;&lt;/a&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>how can I use already predefined template so I won't have to repeat the code?</p>
  
  <p>I tried </p>
  
  <pre><code>{{each package_services tmpl="#row_tmpl_package_service"}}
  </code></pre>
  
  <p>but of course it doesn;t work, since in template I use {{service.name}} and {{service.price}} so how cna I tell to the "each" statement, that I have an extra namespace?</p>