blob: 56a23c1f3e097f50dab6142172abca134a20fed1 (
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
38
39
40
41
|
#include "Blog.hpp"
Blog::Blog(std::string uriBasePath, std::string mainTemplatePath)
: Content(), m_UriBasePath(uriBasePath), m_MainTemplatePath(mainTemplatePath)
{
m_Redirections.push_back(uriBasePath + "/");
m_Redirections.push_back(uriBasePath + "/index.html");
}
bool Blog::Init()
{
return true;
}
void Blog::Shutdown()
{
}
bool Blog::Render(RequestResponse & rr, RenderData & rd)
{
rd["blah"] = "Yoh!";
rr.UseOutputHeader();
rr.AddOutputHeader("bla", "blubb");
return true;
}
std::string const & Blog::GetUriBasePath() const
{
return m_UriBasePath;
}
std::string const & Blog::GetMainTemplate() const
{
return m_MainTemplatePath;
}
Redirections const & Blog::GetRedirections() const
{
return m_Redirections;
}
|