public function getTemplateDir(string $path = null): string
    {
        return $this->templateDir . ($path
                ? Directory::DIRECTORY_SEPARATOR . $path
                : $path);
    }
public function getTemplateDir(string $path = null): string
    {
        return $this->templateDir . ($path
                ? Directory::DIRECTORY_SEPARATOR . $path
                : $path);
    }
public function getTemplateDir ( string $ path = null ) : string { return $ this -> templateDir . ( $ path ? Directory :: DIRECTORY_SEPARATOR . $ path : $ path ) ; }
Get the template directory.

@param string $path [optional] The path to append

@return string
Get the template directory .