public function render($name, array $parameters = [])
    {
        $parameters = $this->getParameters($parameters);
        $method = method_exists($this->jade, 'renderFile')
            ? [$this->jade, 'renderFile']
            : [$this->jade, 'render'];

        return call_user_func($method, $this->getFileFromName($name), $parameters);
    }
public function render($name, array $parameters = [])
    {
        $parameters = $this->getParameters($parameters);
        $method = method_exists($this->jade, 'renderFile')
            ? [$this->jade, 'renderFile']
            : [$this->jade, 'render'];

        return call_user_func($method, $this->getFileFromName($name), $parameters);
    }
public function render ( $ name , array $ parameters = [ ] ) { $ parameters = $ this -> getParameters ( $ parameters ) ; $ method = method_exists ( $ this -> jade , 'renderFile' ) ? [ $ this -> jade , 'renderFile' ] : [ $ this -> jade , 'render' ] ; return call_user_func ( $ method , $ this -> getFileFromName ( $ name ) , $ parameters ) ; }
Render a template by name.

@param string|\Symfony\Component\Templating\TemplateReferenceInterface $name
@param array                                                           $parameters

@throws \ErrorException when a forbidden parameter key is used

@return string
Render a template by name .