aboutsummaryrefslogtreecommitdiff
path: root/src/content/blog/Blog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/blog/Blog.cpp')
1 files changed, 9 insertions, 5 deletions
diff --git a/src/content/blog/Blog.cpp b/src/content/blog/Blog.cpp
index 3f1433d..f72ef70 100644
--- a/src/content/blog/Blog.cpp
+++ b/src/content/blog/Blog.cpp
@@ -1,8 +1,8 @@
#include "Blog.hpp"
-Blog::Blog(std::string basePath) : m_BasePath(basePath), m_Redirections()
+Blog::Blog(std::string baseUri, std::string templatePath) : TemplatedContent(templatePath), m_BaseUri(baseUri), m_Redirections()
{
- m_Redirections.push_back(basePath + "-data");
+ m_Redirections.push_back(baseUri + "-data");
}
bool Blog::Init(void)
@@ -14,16 +14,20 @@ void Blog::Shutdown(void)
{
}
-bool Blog::Render(std::string & out)
+bool Blog::Render(RequestResponse & rr, std::string & out)
{
+ (void)rr;
+
+ rr.UseOutputHeader();
+ rr.AddOutputHeader2("bla", "blubb");
out = "blog-bla";
return true;
}
-std::string const & Blog::GetBasePath(void) const
+std::string const & Blog::GetBaseUri(void) const
{
- return m_BasePath;
+ return m_BaseUri;
}
Redirections const &