]> ruin.nu Git - ndwebbie.git/blob - root/lib/site/wrapper.tt2
Added a controller and template for exporting data in plain text
[ndwebbie.git] / root / lib / site / wrapper.tt2
1 [% IF template.name.match('\.(css|js|txt)');
2         debug("Passing page through as text: $template.name");
3         content;
4 ELSIF template.name.match('graphs/');
5         debug("Passing page through graph: $template.name");
6         content;
7 ELSIF template.name.match('jsrpc/');
8         debug("Passing page through xml: $template.name");
9         content WRAPPER site/xml.tt2;
10 ELSIF template.name.match('textexport/');
11         debug("Passing page through graph: $template.name");
12         content;
13 ELSE;
14         debug("Applying HTML page layout wrappers to $template.name\n");
15         content WRAPPER site/html.tt2 + site/layout.tt2;
16 END;
17 -%]