title: Smarty's template inheritence and img src attribut
body: <p>Is there a way to make Smarty convert <strong>src</strong> &amp; <strong>href</strong> attributs values to the correct URL when using template inheritence</p>
  
  <p>exmple:</p>
  
  <p><strong>file: web/tpl/layout.tpl</strong></p>
  
  <pre><code>&lt;img src="../img/logo.png" /&gt;
  {block name=content}{/block}
  </code></pre>
  
  <p><strong>file: index.tpl</strong></p>
  
  <pre><code>{extends file="web/tpl/layout"}
  {block name=content} home page content here{/block}
  </code></pre>
  
  <p><strong>file: dir/index.tpl</strong></p>
  
  <pre><code>{extends file="../web/tpl/layout"}
  {block name=content} an other page content here{/block}
  </code></pre>