Simple templating engine in PHP