From 93d69841064fd5c3156d989caf7ddec46bfb8685 Mon Sep 17 00:00:00 2001 From: Toni Uhlig <matzeton@googlemail.com> Date: Sun, 20 Jun 2021 16:49:10 +0200 Subject: Inja/Template stuff Signed-off-by: Toni Uhlig <matzeton@googlemail.com> --- src/Content.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'src/Content.cpp') diff --git a/src/Content.cpp b/src/Content.cpp index e302a78..36138a7 100644 --- a/src/Content.cpp +++ b/src/Content.cpp @@ -1 +1,26 @@ #include "Content.hpp" + +TemplatedContent::TemplatedContent(std::string filesystemPath) : m_FilesystemPath(filesystemPath) +{ +} + +bool TemplatedContent::Init() +{ + return false; +} + +void TemplatedContent::Shutdown() +{ +} + +bool TemplatedContent::Render(std::string & out) +{ + out = "tmpl"; + + return false; +} + +void TemplatedContent::SetTemplateData(nlohmann::json & data) +{ + m_TemplateData = data; +} -- cgit v1.2.3