separatePathAndPattern($path); return ['base' => $base, 'pattern' => $pattern]; } /** @inheritdoc */ protected function doRender(string $format, \Doku_Renderer $renderer, array $pathData, array $params): bool { $pathInfo = $this->getPathInfoSafe($pathData['base'], $renderer); if ($pathInfo === false) { return true; } $crawler = $this->createCrawler($params); $result = $crawler->crawl( $pathInfo['root'], $pathInfo['local'], $pathData['pattern'], $params['recursive'], $params['titlefile'] ); if ($result == []) { $this->renderEmptyState($renderer, 'empty_files'); return true; } $output = new Output($renderer, $pathInfo['root'], $pathInfo['web'], $result); switch ($params['style']) { case 'list': case 'olist': $output->renderAsList($params); break; case 'table': $output->renderAsTable($params); break; } return true; } }