Fuel-template is a project mainly written in PHP, it's free.
Phil Sturgeon Codeigniter Template class port to Fuel
Copy config/template.php to app/config/template.php and change whatever setting in need of changing.
$this->template = Template::forge();
$this->template->set_layout('default');
$this->template->set_theme('mytheme');