aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorlns <matzeton@googlemail.com>2021-05-06 13:40:23 +0200
committerlns <matzeton@googlemail.com>2021-05-06 13:40:23 +0200
commita1dbf3f04bde8f98c11f43722e90b20dc832e78c (patch)
tree82698dc88f2770bf99841ae4db7a14ffb8a42842 /src/main.cpp
parentc0483779dac4d8fd5fcc736ae5ffa8ddede0e511 (diff)
Blog, Content, ContentManager skeleton!
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index ea0f333..feabb19 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1,3 +1,5 @@
+#include "ContentManager.hpp"
+#include "content/blog/Blog.hpp"
#include "EventManager.hpp"
#include "Filesystem.hpp"
@@ -84,6 +86,11 @@ int main(int argc, char **argv) {
}
fs.Scan();
+ Blog blog;
+
+ ContentManager ctmgr;
+ ctmgr.Register(blog);
+
EventManager evmgr;
evmgr.setDefaultCallback(example_inja_render, {});
evmgr.Init(host, port);