- WIP on Skeleton again

This commit is contained in:
Dave Mc Nicoll committed 2024-05-21 13:04:46 +00:00
1 parent f9c081ff26
commit 38b540bbd8
4 files changed
+72 -3

No files matched your search

+3 -2
View File
@@ -9,6 +9,7 @@ use Notes\Security\Attribute\Security;
use Picea, Picea\Ui\Method\FormContext;
use TheBugs\Email\MailerInterface;
use Storage\Session;
use League\CommonMark\CommonMarkConverter;
use Psr\Http\Message\{ ServerRequestInterface, ResponseInterface };
@@ -129,9 +130,9 @@ trait ControllerTrait {
throw new \BadFunctionCallException("League\CommonMark seems to be missing, please install dependency before trying to render Markdown content");
}
$markdown = ( new CommonMarkConverter() )->convertToHtml(file_get_contents($filepath));
$markdown = ( new CommonMarkConverter() )->convert(file_get_contents($filepath));
return $this->renderView("docs", get_defined_vars());
return $this->renderView("lean/layout/docs", get_defined_vars());
}
#[Ignore]