diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-04-09 11:38:48 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-04-09 11:38:48 +0200 |
commit | 2f42619303627db401e469e2fd65123cd794a378 (patch) | |
tree | fb9944f9838b9d19be3e2ce39e6be6b71f9c469c /plugins/static-files/static-files.cpp | |
parent | f5e2c43abe9477fba6255c734faf2822e7f2f9c5 (diff) |
Load only configured plugins, add plugins
Diffstat (limited to 'plugins/static-files/static-files.cpp')
-rw-r--r-- | plugins/static-files/static-files.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/static-files/static-files.cpp b/plugins/static-files/static-files.cpp new file mode 100644 index 0000000..287c975 --- /dev/null +++ b/plugins/static-files/static-files.cpp @@ -0,0 +1,26 @@ +#include "static-files.h" + +#include <iostream> + +using namespace std::string_literals; + +std::string static_files_plugin::name() +{ + return "static-files"; +} + +static_files_plugin::static_files_plugin() +{ + //std::cout << "Plugin constructor" << std::endl; +} + +static_files_plugin::~static_files_plugin() +{ + //std::cout << "Plugin destructor" << std::endl; +} + +std::string static_files_plugin::generate_page(std::string path) +{ + return "Static Files "s + path; +} + |