allow template file extension to be .tpl, because it's not a valid php file