aboutsummaryrefslogtreecommitdiff
path: root/src/Content.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Content.hpp')
-rw-r--r--src/Content.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Content.hpp b/src/Content.hpp
index de5f531..6a1d422 100644
--- a/src/Content.hpp
+++ b/src/Content.hpp
@@ -1,6 +1,7 @@
#ifndef CONTENT_H
#define CONTENT_H 1
+#include <inja/inja.hpp>
#include <string>
#include <tuple>
#include <vector>
@@ -17,4 +18,19 @@ public:
virtual Redirections const & GetRedirections() const = 0;
};
+class TemplatedContent : public Content {
+public:
+ explicit TemplatedContent(std::string filesystemPath);
+
+ virtual bool Init();
+ virtual void Shutdown();
+ virtual bool Render(std::string & out);
+
+ void SetTemplateData(nlohmann::json & data);
+
+private:
+ std::string m_FilesystemPath;
+ nlohmann::json m_TemplateData;
+};
+
#endif