protected function display($template_name)
{
/*
* Assign internal variables into the theme ( and therefore into the theme's template
* engine. See Theme::assign().
*/
foreach ($this->handler_vars as $key => $value) {
$this->theme->assign($key, $value);
}
try {
$this->theme->display($template_name);
} catch (Error $e) {
EventLog::log($e->humane_error(), 'error', 'theme', 'habari', print_r($e, 1));
}
}