getTemplateFilename($template); if (!$filename) { return ''; } extract($variables); ob_start(); include $filename; return ob_get_clean(); } }