aboutsummaryrefslogtreecommitdiffstats
path: root/root/template/wrapper
diff options
context:
space:
mode:
authorBuchan Milne <buchan@mageia.org>2010-11-02 20:29:21 +0000
committerBuchan Milne <buchan@mageia.org>2010-11-02 20:29:21 +0000
commit7fa312026a6caba28550339fc29edfd790e78fda (patch)
treec054f6b854a3c6f6cba566b02b3fdd95b91a124c /root/template/wrapper
parent11665d7a97e320fb38fd076da3ad7c62f36a1362 (diff)
downloadidentity-7fa312026a6caba28550339fc29edfd790e78fda.tar
identity-7fa312026a6caba28550339fc29edfd790e78fda.tar.gz
identity-7fa312026a6caba28550339fc29edfd790e78fda.tar.bz2
identity-7fa312026a6caba28550339fc29edfd790e78fda.tar.xz
identity-7fa312026a6caba28550339fc29edfd790e78fda.zip
Add some CSS themeing, and refactor some template stuff using preprocess
Add missing tempaltes
Diffstat (limited to 'root/template/wrapper')
-rw-r--r--root/template/wrapper11
1 files changed, 11 insertions, 0 deletions
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;
+-%]