From 7fa312026a6caba28550339fc29edfd790e78fda Mon Sep 17 00:00:00 2001 From: Buchan Milne Date: Tue, 2 Nov 2010 20:29:21 +0000 Subject: Add some CSS themeing, and refactor some template stuff using preprocess Add missing tempaltes --- root/template/footer | 3 +++ root/template/header | 16 ++++++++++++++++ root/template/html | 13 +++++++++++++ root/template/layout | 40 ++++++++++++++++++++++++++++++++++++++++ root/template/pre | 3 +++ root/template/wrapper | 11 +++++++++++ 6 files changed, 86 insertions(+) create mode 100644 root/template/footer create mode 100644 root/template/header create mode 100644 root/template/html create mode 100644 root/template/layout create mode 100644 root/template/pre create mode 100644 root/template/wrapper (limited to 'root/template') diff --git a/root/template/footer b/root/template/footer new file mode 100644 index 0000000..78203d5 --- /dev/null +++ b/root/template/footer @@ -0,0 +1,3 @@ + + + diff --git a/root/template/header b/root/template/header new file mode 100644 index 0000000..11ca573 --- /dev/null +++ b/root/template/header @@ -0,0 +1,16 @@ + +
+

[% c.config.apptitle %]

+
+
+ + +
+ diff --git a/root/template/html b/root/template/html new file mode 100644 index 0000000..c23fcfb --- /dev/null +++ b/root/template/html @@ -0,0 +1,13 @@ + + + + [% template.title or site.title %] + + + + + + +[% content %] + + diff --git a/root/template/layout b/root/template/layout new file mode 100644 index 0000000..8a6b601 --- /dev/null +++ b/root/template/layout @@ -0,0 +1,40 @@ + + + + +
+
+
+
+ +
+
+
+ +
+ +
+
+ [% IF errros %] + + [% FOREACH error IN errors %] + [% error %]
+ [% END %] +
+ [% END %] +
+ [% content %] +
+
+
+
+
+
+ +
+ + diff --git a/root/template/pre b/root/template/pre new file mode 100644 index 0000000..581baf7 --- /dev/null +++ b/root/template/pre @@ -0,0 +1,3 @@ +[% MACRO l(text, args) BLOCK; + c.localize(text, args); +END; %] diff --git a/root/template/wrapper b/root/template/wrapper new file mode 100644 index 0000000..8bfee46 --- /dev/null +++ b/root/template/wrapper @@ -0,0 +1,11 @@ +[% MACRO l(text, args) BLOCK; + c.localize(text, args); +END; %] +[% IF template.name.match('\.(css|js|txt)'); + debug("Passing page through as text: $template.name"); + content; + ELSE; + debug("Applying HTML page layout wrappers to $template.name\n"); + content WRAPPER template/html + template/layout; + END; +-%] -- cgit v1.2.1