src/lib/Herrera/Template/Engine.php
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();
    }
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();
    }
Renders a template and returns the result.

@param string  $template The name of the template.
@param array   $vars     The template variables.

@return string The template rendering.