private function getRenderer(string $template): string
    {
        if (is_readable($template) === false) {
            throw new View\Exception('Could not open file "' . basename($template) . '"');
        }

        $suffix = strtolower(pathinfo($template, PATHINFO_EXTENSION));

        if (isset($this->renderer[$suffix]) === false) {
            throw new View\Exception('No template engine registered for file extension "' . $suffix . '"');
        }

        return $this->renderer[$suffix];
    }
private function getRenderer(string $template): string
    {
        if (is_readable($template) === false) {
            throw new View\Exception('Could not open file "' . basename($template) . '"');
        }

        $suffix = strtolower(pathinfo($template, PATHINFO_EXTENSION));

        if (isset($this->renderer[$suffix]) === false) {
            throw new View\Exception('No template engine registered for file extension "' . $suffix . '"');
        }

        return $this->renderer[$suffix];
    }
private function getRenderer ( string $ template ) : string { if ( is_readable ( $ template ) === false ) { throw new View \ Exception ( 'Could not open file "' . basename ( $ template ) . '"' ) ; } $ suffix = strtolower ( pathinfo ( $ template , PATHINFO_EXTENSION ) ) ; if ( isset ( $ this -> renderer [ $ suffix ] ) === false ) { throw new View \ Exception ( 'No template engine registered for file extension "' . $ suffix . '"' ) ; } return $ this -> renderer [ $ suffix ] ; }
Get appropriate renderer class name for a given template

@param string $template
@throws \Janeiro\Mvc\Exception
@return string
Get appropriate renderer class name for a given template