summaryrefslogtreecommitdiffhomepage
path: root/plugins/weblog/weblog.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-04-09 11:38:48 +0200
committerRoland Reichwein <mail@reichwein.it>2020-04-09 11:38:48 +0200
commit2f42619303627db401e469e2fd65123cd794a378 (patch)
treefb9944f9838b9d19be3e2ce39e6be6b71f9c469c /plugins/weblog/weblog.cpp
parentf5e2c43abe9477fba6255c734faf2822e7f2f9c5 (diff)
Load only configured plugins, add plugins
Diffstat (limited to 'plugins/weblog/weblog.cpp')
-rw-r--r--plugins/weblog/weblog.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/weblog/weblog.cpp b/plugins/weblog/weblog.cpp
new file mode 100644
index 0000000..ef90a53
--- /dev/null
+++ b/plugins/weblog/weblog.cpp
@@ -0,0 +1,26 @@
+#include "weblog.h"
+
+#include <iostream>
+
+using namespace std::string_literals;
+
+std::string weblog_plugin::name()
+{
+ return "weblog";
+}
+
+weblog_plugin::weblog_plugin()
+{
+ //std::cout << "Plugin constructor" << std::endl;
+}
+
+weblog_plugin::~weblog_plugin()
+{
+ //std::cout << "Plugin destructor" << std::endl;
+}
+
+std::string weblog_plugin::generate_page(std::string path)
+{
+ return "Blog "s + path;
+}
+