title: PHP templating with str_replace?
body: <p>I think the basic principle of a PHP templating system is string replacing, right?
  So can I just use a string to hold my html template code like </p>
  
  <pre><code>$str_template = "&lt;html&gt;&lt;head&gt;&lt;title&gt;{the_title}&lt;/title&gt;&lt;body&gt;{the_content}&lt;/body&gt;&lt;/html&gt;"
  </code></pre>
  
  <p>and in the following code simply do a str_replace to push the data into my template variable like </p>
  
  <pre><code>str_replace( $str_template, '{the_title}', $some_runtime_generated_title );
  str_replace( $str_template, '{the_content}', $some_runtime_generated_content );
  </code></pre>
  
  <p>then at last </p>
  
  <pre><code>echo $str_template; 
  </code></pre>
  
  <p>Will this hopefully make the whole variable passing process a bit faster? I know this could be a weird question but has anybody tried it? </p>