From ec7cfa85530082127703278cf1ae5167990c0f45 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Mon, 21 Jun 2021 19:55:06 +0200 Subject: Request/Response handling w/ libevent2 Signed-off-by: Toni Uhlig --- src/Content.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/Content.cpp') 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 & requiredFiles) const { - m_TemplateData = data; + requiredFiles.push_back(m_FilesystemPath); } -- cgit v1.2.3