diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2021-09-30 21:12:57 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2021-09-30 21:12:57 +0200 |
commit | 6c04dfe2caff1e03ba5c898b591327439452f616 (patch) | |
tree | 11c6f6955de188c48015641c1ae2e63b0d0e50d6 /src/content/blog/Blog.hpp | |
parent | ec7cfa85530082127703278cf1ae5167990c0f45 (diff) |
CMS functionality works just find..minimal-working-example
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/content/blog/Blog.hpp')
-rw-r--r-- | src/content/blog/Blog.hpp | 20 |
1 files changed, 11 insertions, 9 deletions
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 |