protected function display($handle)
{
ob_start();
try {
$this->template->display($handle, false);
} catch (Exception $exception) {
// reset output buffering even when an error occurred
// PHPUnit turns trigger_error into exceptions as well
ob_end_clean();
throw $exception;
}
$result = self::trim_template_result(ob_get_clean());
return $result;
}