]> ruin.nu Git - ndwebbie.git/blobdiff - root/lib/config/main.tt2
Initial commit of catalyst files
[ndwebbie.git] / root / lib / config / main.tt2
diff --git a/root/lib/config/main.tt2 b/root/lib/config/main.tt2
new file mode 100644 (file)
index 0000000..fe70a5e
--- /dev/null
@@ -0,0 +1,26 @@
+[% # config/main
+   #
+   # This is the main configuration template which is processed before
+   # any other page, by virtue of it being defined as a PRE_PROCESS 
+   # template.  This is the place to define any extra template variables,
+   # macros, load plugins, and perform any other template setup.
+
+   IF c.debug;
+     # define a debug() macro directed to Catalyst's log
+     MACRO debug(message) CALL Catalyst.log.debug(message);
+   END;
+
+   # define a data structure to hold sitewide data
+   site = {
+     title     => 'NewDawn',
+     copyright => '2008 harv',
+   };
+
+   # load up any other configuration items 
+   PROCESS config/url.tt2;
+
+   # set defaults for variables, etc.
+   DEFAULT 
+     message = 'There is no message';
+
+-%]