public function renderTemplate($path, array $data = [], $class = null)
    {
        if (file_exists($path)) {
            return $this->doRender($path, $data, $class);
        }
        throw new RuntimeException(__METHOD__.' needs a valid template path as first argument.');
    }
public function renderTemplate($path, array $data = [], $class = null)
    {
        if (file_exists($path)) {
            return $this->doRender($path, $data, $class);
        }
        throw new RuntimeException(__METHOD__.' needs a valid template path as first argument.');
    }
public function renderTemplate ( $ path , array $ data = [ ] , $ class = null ) { if ( file_exists ( $ path ) ) { return $ this -> doRender ( $ path , $ data , $ class ) ; } throw new RuntimeException ( __METHOD__ . ' needs a valid template path as first argument.' ) ; }
Render a template file given its full path and an array of data.

@param  string $path
@param  array  $data
@param  string $class
@return string
Render a template file given its full path and an array of data .