public function make(string $template = null, array $variables = []): View
    {
        return new static($this->app, $template, $variables);
    }
public function make(string $template = null, array $variables = []): View
    {
        return new static($this->app, $template, $variables);
    }
public function make ( string $ template = null , array $ variables = [ ] ) : View { return new static ( $ this -> app , $ template , $ variables ) ; }
Make a new View.

@param string $template  [optional] The template to set
@param array  $variables [optional] The variables to set

@throws InvalidConfigPath

@return \Valkyrja\View\View
Make a new View .