title: PHP template with HTML template
body: <p>I am in middle of using HTML template and I want to convert it to PHP so it will be easier to manage since multiple files are going to be created.</p>
  
  <p>Is it better to use php class and generate the templates in the pages?</p>
  
  <p>For example:</p>
  
  <pre><code>$Template = new Template();
  
  $Template-&gt;page_header();
  $Template-&gt;tag("open-div");
  $Template-&gt;search_bar();
  $Template-&gt;tag("close-div");
  </code></pre>
  
  <p>or use HTML to generate the same?</p>
  
  <p>I know this question has been bit to death but different people ask questions of different nature. So pardon me if this is a report I just needed a short answer or suggestions about this.</p>
  
  <p>Thanks in advance.</p>