diff options
Diffstat (limited to 'src/Content.hpp')
-rw-r--r-- | src/Content.hpp | 16 |
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 |