title: how to make smarty's display function return to a variable
body: <p>In smarty is it possible or is there any kind of function to render a template and return the result?</p>
  
  <p>for example:</p>
  
  <pre><code>$rendered_content = $smarty-&gt;render("content.html")
  </code></pre>