aboutsummaryrefslogtreecommitdiff
path: root/src/content/blog/Blog.cpp
blob: f72ef70a9b2abd82459af265f898e96f93d0e3be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include "Blog.hpp"

Blog::Blog(std::string baseUri, std::string templatePath) : TemplatedContent(templatePath), m_BaseUri(baseUri), m_Redirections()
{
    m_Redirections.push_back(baseUri + "-data");
}

bool Blog::Init(void)
{
  return true;
}

void Blog::Shutdown(void)
{
}

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::GetBaseUri(void) const
{
  return m_BaseUri;
}

Redirections const &
Blog::GetRedirections(void) const
{
  return m_Redirections;
}