returnPostInfo($params['slug']); $postContent = $posts->findPostBySlug($params['slug']); $postContent = RenderHtml::markdownToHtml($postContent); $this->title = $postInfo['title']; $author = $params['config']['author']; require __DIR__ . '/../../template/'.$params['config']['theme'].'/post.php'; $content = ob_get_contents(); ob_end_clean(); return $content; } function title() { return $this->title; } }