title: Smarty - template definition inside template
body: <p>Lets say we have 3 arrays with mysql records, for example:</p>
  
  <ul>
  <li>Pending orders</li>
  <li>Processing orders</li>
  <li>Last 20 shipped orders</li>
  </ul>
  
  <p>I want to show the data as HTML table for all cases, so I will make a new TPL called "order-table.tpl" and via parameter i will send mysql rows data to the template file. I can call it as this:</p>
  
  <pre><code>{include file="order-table.tpl" rows=$pending_rows}
  {include file="order-table.tpl" rows=$processing_rows}
  {include file="order-table.tpl" rows=$last_shipped_rows}
  </code></pre>
  
  <p>This example works it creates 3 tables with correct data, but is there any other way to define template file inside template file? I don't want to make a new TPL file every time. I would like to create some definition inside TPL file and later call it multiple times.</p>