/**
* @param string $text
* @param array $templateVars
*/
public function render($text, array $templateVars = array())
{
if (file_exists($text)) {
$text = file_get_contents($text);
}
$templateKeys = $this->extractKeys($templateVars);
$output = str_replace($templateKeys, array_values($templateVars), $text);
$this->io->write($output);
}