From 6c04dfe2caff1e03ba5c898b591327439452f616 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Thu, 30 Sep 2021 21:12:57 +0200 Subject: CMS functionality works just find.. Signed-off-by: Toni Uhlig --- src/content/blog/Blog.hpp | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'src/content/blog/Blog.hpp') diff --git a/src/content/blog/Blog.hpp b/src/content/blog/Blog.hpp index 1de6e0f..086acc7 100644 --- a/src/content/blog/Blog.hpp +++ b/src/content/blog/Blog.hpp @@ -3,21 +3,23 @@ #include "../../Content.hpp" -class Blog : public TemplatedContent +class Blog : public Content { public: - explicit Blog(std::string baseUri, std::string templatePath); + explicit Blog(std::string uriBasePath, std::string mainTemplatePath); - bool Init(void); - void Shutdown(void); - bool Render(RequestResponse & rr, std::string & out); + bool Init(); + void Shutdown(); + bool Render(RequestResponse & rr, RenderData & rd); - std::string const & GetBaseUri() const; - Redirections const & GetRedirections() const; + std::string const & GetUriBasePath() const; + std::string const & GetMainTemplate() const; + Redirections const & GetRedirections() const; private: - std::string m_BaseUri; - Redirections m_Redirections; + std::string m_UriBasePath; + std::string m_MainTemplatePath; + Redirections m_Redirections; }; #endif -- cgit v1.2.3