title: Page generation from PHP class
body: <p>I'm actually creating websites for fun and some of my friends told me that I could be more efficient if I could create the output of the page with a php class that would represent the whole page.</p>
  
  <p>I was wondering how you people would do it.</p>
  
  <p>Thanks</p>