diff options
author | dakkar <dakkar@luxion> | 2006-02-08 14:45:28 +0000 |
---|---|---|
committer | dakkar <dakkar@luxion> | 2006-02-08 14:45:28 +0000 |
commit | 0da21beb53bba595fec04ddf200a46675ae0be31 (patch) | |
tree | 73a591b564f8fb6da2fdcf6335f11ecce5874a71 /GroLUG/root/lib/config/main | |
parent | scheletro catalyst (diff) | |
download | IscrittiGroLUG-0da21beb53bba595fec04ddf200a46675ae0be31.tar.gz IscrittiGroLUG-0da21beb53bba595fec04ddf200a46675ae0be31.tar.bz2 IscrittiGroLUG-0da21beb53bba595fec04ddf200a46675ae0be31.zip |
view::TTsite
git-svn-id: svn://luxion/repos/IscrittiGroLUG/trunk@165 fcb26f47-9200-0410-b104-b98ab5b095f3
Diffstat (limited to 'GroLUG/root/lib/config/main')
-rw-r--r-- | GroLUG/root/lib/config/main | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/GroLUG/root/lib/config/main b/GroLUG/root/lib/config/main new file mode 100644 index 0000000..89de4ae --- /dev/null +++ b/GroLUG/root/lib/config/main @@ -0,0 +1,27 @@ +[% # 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 Catalyst.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 => 'Catalyst::View::TTSite Example Page', + copyright => '2006 Your Name Here', + }; + + # load up any other configuration items + PROCESS config/col + + config/url; + + # set defaults for variables, etc. + DEFAULT + message = 'There is no message'; + +-%] |