X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=root%2Flib%2Fsite%2Fwrapper.tt2;h=6da016bffd2c9e070dc84d20bcfbdf71a814ac3d;hb=b1a7289bb7acbb4e911b62557acb7812492d90d5;hp=37674ca39de11ef2ed2417db1f439eea0fac4c2b;hpb=3fc40135d773a95ede229e71efb48e07fdf3c418;p=ndwebbie.git diff --git a/root/lib/site/wrapper.tt2 b/root/lib/site/wrapper.tt2 index 37674ca..6da016b 100644 --- a/root/lib/site/wrapper.tt2 +++ b/root/lib/site/wrapper.tt2 @@ -1,8 +1,14 @@ [% 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.tt2 + site/layout.tt2; - END; + debug("Passing page through as text: $template.name"); + content; +ELSIF template.name.match('graphs/'); + debug("Passing page through graph: $template.name"); + content; +ELSIF template.name.match('jsrpc/'); + debug("Passing page through xml: $template.name"); + content WRAPPER site/xml.tt2; +ELSE; + debug("Applying HTML page layout wrappers to $template.name\n"); + content WRAPPER site/html.tt2 + site/layout.tt2; +END; -%]