exacto!!
mayid tiene toda la razón, la técnica consiste en usar archivos de PHP normales, incluirlos y capturar el resultado mediante buffers...
tpl.php Código PHP:
Nombre: <?php echo $name; ?><br />
y nuestro script PHP...
Código PHP:
$name = 'Foo';
ob_start();
include 'tpl.php';
$html = ob_get_contents();
ob_end_clean();
echo $html; // Nombre: Foo<br />