PHPified :'(
templatified