summaryrefslogtreecommitdiff
path: root/templates
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 /templates
parentd4c3033adcfa359ae0c82a0d3b1bee6a96245ba1 (diff)
downloadaCms-2b5cb826fae8325661abd54eb6521cade1c80dba.tar.gz
aCms-2b5cb826fae8325661abd54eb6521cade1c80dba.tar.bz2
added master and intro templates
Diffstat (limited to 'templates')
-rw-r--r--templates/intro.tmpl14
-rw-r--r--templates/main.tmpl13
2 files changed, 25 insertions, 2 deletions
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 <b>StrusCms</b>.
+<% 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( ) %>
<html>
+ <head>
+ <title><% include title( ) %></title>
+ </head>
<body>
- <p>strusCms</p>
+ <h1><% include title( ) %></h1>
+ <div id="content">
+ <% include page_content( ) %>
+ </div>
</body>
</html>
<% end template %>