source: trunk/npemap.org.uk/perllib/NPEMap/Config.pm @ 219

Last change on this file since 219 was 219, checked in by Dominic Hargreaves, 14 years ago

Add a perl module for some glue including templates, and modify update_stats.pl
to use it.

File size: 360 bytes
Line 
1package NPEMap::Config;
2
3use vars qw(@ISA @EXPORT $tt_config $rootdir $dbname);
4use warnings;
5use strict;
6
7require Exporter;
8@ISA    = qw(Exporter);
9@EXPORT = qw($tt_config);
10
11# Read in site config
12my $config = 'npemap.conf';
13do $config or die "Can't read $config!\n";
14
15$tt_config = {
16    INCLUDE_PATH => $rootdir . '/templates',
17    EVAL_PERL    => 0,
18};
19
201;
Note: See TracBrowser for help on using the repository browser.