public function render($template, array $vars = array())
    {
        ob_start();

        try {
            $this->display($template, $vars);
        } catch (Exception $exception) {
            ob_end_clean();

            throw $exception;
        }

        return ob_get_clean();
    }