aboutsummaryrefslogtreecommitdiff
path: root/src/content/static/Static.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/static/Static.hpp')
-rw-r--r--src/content/static/Static.hpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/content/static/Static.hpp b/src/content/static/Static.hpp
new file mode 100644
index 0000000..85ffd8c
--- /dev/null
+++ b/src/content/static/Static.hpp
@@ -0,0 +1,29 @@
+#ifndef STATIC_H
+#define STATIC_H 1
+
+#include "../../Content.hpp"
+#include "../../Filesystem.hpp"
+#include "../markdown/Markdown.hpp"
+
+class Static : public Content
+{
+public:
+ explicit Static(std::string uriBasePath, std::string staticFilesPath);
+
+ bool Init();
+ void Shutdown();
+ bool Render(RequestResponse & rr, RenderData & rd, std::string & out);
+
+ std::string const & GetUriBasePath() const;
+ std::string const & GetMainTemplate() const;
+ Redirections const & GetRedirections() const;
+
+private:
+ std::string m_UriBasePath;
+ std::string m_MainTemplatePath;
+ std::string m_StaticFilesPath;
+ Redirections m_Redirections;
+ Filesystem m_StaticFiles;
+};
+
+#endif