summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2015-04-18 09:04:34 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2015-04-18 09:04:34 +0200
commit2b5cb826fae8325661abd54eb6521cade1c80dba (patch)
tree15518de974c9d43b1605adc7d218aea9fc87d366 /src
parentd4c3033adcfa359ae0c82a0d3b1bee6a96245ba1 (diff)
downloadaCms-2b5cb826fae8325661abd54eb6521cade1c80dba.tar.gz
aCms-2b5cb826fae8325661abd54eb6521cade1c80dba.tar.bz2
added master and intro templates
Diffstat (limited to 'src')
-rw-r--r--src/strusCms.cpp16
-rw-r--r--src/strusCms.hpp3
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