title: php smarty-like inheritance in twig template engine
body: <p>The only php template engine which can handle inheritance to support e.g. a plugin-system is smarty - because it supports to load a parent template and also one or more child templates at the same time.</p>
  
  <p>I couldn't find this in twig, dwoo, lette or similar template engines.</p>
  
  <p>To be exact, I mean this:
  <a href="https://www.smarty.net/docs/en/resources.extends.tpl" rel="nofollow noreferrer">https://www.smarty.net/docs/en/resources.extends.tpl</a></p>
  
  <pre><code>+- index.tpl // the parent template
  |
  +--- child.tpl // a child which extends the parent
  +--- child2.tpl // another child which extends the parent
  </code></pre>
  
  <p>Smarty will load this like so:</p>
  
  <pre><code>$smarty-&gt;display('index.tpl|child.tpl|child2.tpl');
  </code></pre>
  
  <p>Since I use the twig template engine in personal projects and it doesn't seems to support this feature I would appreciate any suggestions. </p>
  
  <p>Sorry if I am wrong here but I don't know another place to ask.</p>