From 2b5cb826fae8325661abd54eb6521cade1c80dba Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 18 Apr 2015 09:04:34 +0200 Subject: added master and intro templates --- src/strusCms.cpp | 16 ++++++++++++++++ src/strusCms.hpp | 3 +++ 2 files changed, 19 insertions(+) (limited to 'src') 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 +#include +#include 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 -- cgit v1.2.3-54-g00ecf