aboutsummaryrefslogtreecommitdiff
path: root/src/content/blog/Blog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/blog/Blog.cpp')
-rw-r--r--src/content/blog/Blog.cpp28
1 files changed, 19 insertions, 9 deletions
diff --git a/src/content/blog/Blog.cpp b/src/content/blog/Blog.cpp
index d79f207..3f1433d 100644
--- a/src/content/blog/Blog.cpp
+++ b/src/content/blog/Blog.cpp
@@ -1,23 +1,33 @@
#include "Blog.hpp"
-bool Blog::Init(std::string & basePath)
+Blog::Blog(std::string basePath) : m_BasePath(basePath), m_Redirections()
{
- (void)basePath;
+ m_Redirections.push_back(basePath + "-data");
+}
+
+bool Blog::Init(void)
+{
+ return true;
+}
- return false;
+void Blog::Shutdown(void)
+{
}
-void Blog::Shutdown()
+bool Blog::Render(std::string & out)
{
+ out = "blog-bla";
+
+ return true;
}
-bool Blog::Render()
+std::string const & Blog::GetBasePath(void) const
{
- return false;
+ return m_BasePath;
}
-Redirections const
-Blog::GetRedirections()
+Redirections const &
+Blog::GetRedirections(void) const
{
- return Redirections();
+ return m_Redirections;
}