Template-plus is a project mainly written in PHP, it's free.
Kohana 3.1.x Template Controller Improvement