summaryrefslogtreecommitdiff
path: root/src/content/blog/Blog.hpp
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2021-09-30 21:12:57 +0200
committerToni Uhlig <matzeton@googlemail.com>2021-09-30 21:12:57 +0200
commit6c04dfe2caff1e03ba5c898b591327439452f616 (patch)
tree11c6f6955de188c48015641c1ae2e63b0d0e50d6 /src/content/blog/Blog.hpp
parentec7cfa85530082127703278cf1ae5167990c0f45 (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.hpp20
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