diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2015-04-18 09:04:34 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2015-04-18 09:04:34 +0200 |
commit | 2b5cb826fae8325661abd54eb6521cade1c80dba (patch) | |
tree | 15518de974c9d43b1605adc7d218aea9fc87d366 /src | |
parent | d4c3033adcfa359ae0c82a0d3b1bee6a96245ba1 (diff) | |
download | aCms-2b5cb826fae8325661abd54eb6521cade1c80dba.tar.gz aCms-2b5cb826fae8325661abd54eb6521cade1c80dba.tar.bz2 |
added master and intro templates
Diffstat (limited to 'src')
-rw-r--r-- | src/strusCms.cpp | 16 | ||||
-rw-r--r-- | src/strusCms.hpp | 3 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/strusCms.cpp b/src/strusCms.cpp index da535ef..9c59adf 100644 --- a/src/strusCms.cpp +++ b/src/strusCms.cpp @@ -1,5 +1,21 @@ #include "strusCms.hpp" +#include "content.hpp" + +#include <cppcms/url_dispatcher.h> +#include <cppcms/url_mapper.h> +#include <cppcms/http_response.h> strusCms::strusCms( cppcms::service &srv ) : cppcms::application( srv ) { + dispatcher( ).assign( "", &strusCms::intro, this ); + mapper( ).assign( "" ); + + mapper( ).root( "/strusCms" ); +} + +void strusCms::intro( ) +{ + content::master c; + c.title = "strusCms"; + render( "intro", c ); } diff --git a/src/strusCms.hpp b/src/strusCms.hpp index 6dff31f..6c152d0 100644 --- a/src/strusCms.hpp +++ b/src/strusCms.hpp @@ -6,6 +6,9 @@ class strusCms : public cppcms::application { public: strusCms( cppcms::service &srv ); + + private: + void intro( ); }; #endif |