diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2021-06-21 19:55:06 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2021-06-21 19:55:06 +0200 |
commit | ec7cfa85530082127703278cf1ae5167990c0f45 (patch) | |
tree | 81799c532da3c213609471cfcfa785bfda3b2ee0 /src/Content.cpp | |
parent | 93d69841064fd5c3156d989caf7ddec46bfb8685 (diff) |
Request/Response handling w/ libevent2
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/Content.cpp')
-rw-r--r-- | src/Content.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Content.cpp b/src/Content.cpp index 36138a7..b2977bb 100644 --- a/src/Content.cpp +++ b/src/Content.cpp @@ -13,14 +13,16 @@ void TemplatedContent::Shutdown() { } -bool TemplatedContent::Render(std::string & out) +bool TemplatedContent::Render(RequestResponse & rr, std::string & out) { + (void)rr; + out = "tmpl"; return false; } -void TemplatedContent::SetTemplateData(nlohmann::json & data) +void TemplatedContent::GetRequiredFiles(std::vector<std::string> & requiredFiles) const { - m_TemplateData = data; + requiredFiles.push_back(m_FilesystemPath); } |