aboutsummaryrefslogtreecommitdiffstats
path: root/root/template/wrapper
diff options
context:
space:
mode:
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;
+-%]