src/TemplatesManager.php
public function getTemplate($name)
    {
        if (!$this->hasTemplate($name)) {
            throw new \RuntimeException("Template with name \"".$name."\" is not exist");
        }

        $filename = $this->templateMap[$name];

        if (!file_exists($filename)) {
            throw new \RuntimeException("Invalid template filename with name \"".$name."\"");
        }

        return $filename;
    }
public function getTemplate($name)
    {
        if (!$this->hasTemplate($name)) {
            throw new \RuntimeException("Template with name \"".$name."\" is not exist");
        }

        $filename = $this->templateMap[$name];

        if (!file_exists($filename)) {
            throw new \RuntimeException("Invalid template filename with name \"".$name."\"");
        }

        return $filename;
    }
public function getTemplate ( $ name ) { if ( ! $ this -> hasTemplate ( $ name ) ) { throw new \ RuntimeException ( "Template with name \"" . $ name . "\" is not exist" ) ; } $ filename = $ this -> templateMap [ $ name ] ; if ( ! file_exists ( $ filename ) ) { throw new \ RuntimeException ( "Invalid template filename with name \"" . $ name . "\"" ) ; } return $ filename ; }
Get template filename

@param string $name
@return string
@throws \RuntimeException
Get template filename