From 0da21beb53bba595fec04ddf200a46675ae0be31 Mon Sep 17 00:00:00 2001 From: dakkar Date: Wed, 8 Feb 2006 14:45:28 +0000 Subject: view::TTsite git-svn-id: svn://luxion/repos/IscrittiGroLUG/trunk@165 fcb26f47-9200-0410-b104-b98ab5b095f3 --- GroLUG/root/lib/site/footer | 3 +++ GroLUG/root/lib/site/header | 3 +++ GroLUG/root/lib/site/html | 12 ++++++++++++ GroLUG/root/lib/site/layout | 7 +++++++ GroLUG/root/lib/site/wrapper | 8 ++++++++ 5 files changed, 33 insertions(+) create mode 100644 GroLUG/root/lib/site/footer create mode 100644 GroLUG/root/lib/site/header create mode 100644 GroLUG/root/lib/site/html create mode 100644 GroLUG/root/lib/site/layout create mode 100644 GroLUG/root/lib/site/wrapper (limited to 'GroLUG/root/lib/site') diff --git a/GroLUG/root/lib/site/footer b/GroLUG/root/lib/site/footer new file mode 100644 index 0000000..d16739b --- /dev/null +++ b/GroLUG/root/lib/site/footer @@ -0,0 +1,3 @@ + + + diff --git a/GroLUG/root/lib/site/header b/GroLUG/root/lib/site/header new file mode 100644 index 0000000..35159db --- /dev/null +++ b/GroLUG/root/lib/site/header @@ -0,0 +1,3 @@ + +

[% template.title or site.title %]

+ diff --git a/GroLUG/root/lib/site/html b/GroLUG/root/lib/site/html new file mode 100644 index 0000000..0bf8c27 --- /dev/null +++ b/GroLUG/root/lib/site/html @@ -0,0 +1,12 @@ + + + + [% template.title or site.title %] + + + +[% content %] + + diff --git a/GroLUG/root/lib/site/layout b/GroLUG/root/lib/site/layout new file mode 100644 index 0000000..6024fe3 --- /dev/null +++ b/GroLUG/root/lib/site/layout @@ -0,0 +1,7 @@ + + +
+[% content %] +
+ + diff --git a/GroLUG/root/lib/site/wrapper b/GroLUG/root/lib/site/wrapper new file mode 100644 index 0000000..3e55955 --- /dev/null +++ b/GroLUG/root/lib/site/wrapper @@ -0,0 +1,8 @@ +[% 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 site/html + site/layout; + END; +-%] -- cgit v1.2.3