src/Actions/LogAction.php
protected function getTemplate($name, array $data)
    {
        $template = App::instance()->template($name);

        if (!$template->exists()) {
            throw new Exception("The template '{$name}' does not exist.");
        }

        return $template->render($data);
    }
protected function getTemplate($name, array $data)
    {
        $template = App::instance()->template($name);

        if (!$template->exists()) {
            throw new Exception("The template '{$name}' does not exist.");
        }

        return $template->render($data);
    }
protected function getTemplate ( $ name , array $ data ) { $ template = App :: instance ( ) -> template ( $ name ) ; if ( ! $ template -> exists ( ) ) { throw new Exception ( "The template '{$name}' does not exist." ) ; } return $ template -> render ( $ data ) ; }
Returns the a rendered template as string.

@param  string $name
@param  array  $data
@return string
Returns the a rendered template as string .