]> ruin.nu Git - ndwebbie.git/blob - root/lib/config/main.tt2
Don't require dbi plugin for template toolkit
[ndwebbie.git] / root / lib / config / main.tt2
1 [% # config/main
2    #
3    # This is the main configuration template which is processed before
4    # any other page, by virtue of it being defined as a PRE_PROCESS 
5    # template.  This is the place to define any extra template variables,
6    # macros, load plugins, and perform any other template setup.
7
8    IF c.debug;
9      # define a debug() macro directed to Catalyst's log
10      MACRO debug(message) CALL c.log.debug(message);
11    END;
12
13    # define a data structure to hold sitewide data
14    site = {
15      title     => 'NewDawn',
16      copyright => '2008 harv',
17    };
18
19    # USE DBI ( dbh = dbh);
20
21    # load up any other configuration items 
22    PROCESS config/url.tt2;
23
24 -%]