public deviseDocs ( string $viewPath ) : string | ||
$viewPath | string | |
return | string |
public function deviseDocs($viewPath)
{
$content = '';
$view = $this->getDocView($viewPath);
if ($view) {
$content = $view->render();
$content = $this->MarkdownConverter->convertToHtml($content);
$content = $this->LiveSpan->replace($content);
}
$hascontent = !is_null($view);
return $this->View->make('devise::layouts.docs', compact('hascontent', 'content'))->render();
}