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 --- templates/intro.tmpl | 14 ++++++++++++++ templates/main.tmpl | 13 +++++++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 templates/intro.tmpl (limited to 'templates') diff --git a/templates/intro.tmpl b/templates/intro.tmpl new file mode 100644 index 0000000..b99ea06 --- /dev/null +++ b/templates/intro.tmpl @@ -0,0 +1,14 @@ +<% c++ #include "content.hpp" %> +<% skin view %> +<% view intro uses content::master extends master %> + +<% template title() %> + <% include master::title() %> :: Intro +<% end %> + +<% template page_content() %> + Welcome to StrusCms. +<% end template %> + +<% end view %> +<% end skin %> diff --git a/templates/main.tmpl b/templates/main.tmpl index 8b5238a..8e4592f 100644 --- a/templates/main.tmpl +++ b/templates/main.tmpl @@ -2,10 +2,19 @@ <% skin view %> <% view master uses content::master %> -<% template render() %> +<% template title( ) %><%= title %><% end %> +<% template page_content( ) %>Override Me<% end %> + +<% template render( ) %> + + <% include title( ) %> + -

strusCms

+

<% include title( ) %>

+
+ <% include page_content( ) %> +
<% end template %> -- cgit v1.2.3-54-g00ecf