Added easier template inheritance for PHP templates.