WTF::Config - Configuration settings and access interface


VERSION

This document describes WTF::Config version 1.02


SYNOPSIS

        use WTF::Config;
        my $smtp_server = WTF::Config::get( 'email', 'server'   );
        my $favicon     = WTF::Config::get( 'links', 'favicons' );


DESCRIPTION

This module contains the majority of runtime configuration settings for WTF and an interface to access these settings within WTF. The configuration settings are all contained within the ``CONFIG'' constant.

Several settings have both ``DEVEL'' (development) and ``PROD'' (production) settings. ``DEVEL'' settings are settings that are used only when WTF is run in ``DEVEL'' (or development) mode.


FUNCTION

There is only a single function provided by this module.

get()

The only subroutine in this module is a function that provides an interface to the configuration settings. The settings are designed in a tree structure in a series of anonymous hashes. To return a setting, call this function with the names of the tree nodes to decend.

        my $administrator_email = WTF::Config::get( 'email',     'admin' );
        my $pages_path_arrayref = WTF::Config::get( 'templates', 'pages' );


DEPENDENCIES

WTF::Config depends on the following modules:


COPYRIGHT, LICENSE, AND DISCLAIMER OF WARRANTY

Use of this module implies the reading and agreement with the license under which this software is release. That license can be found in the ``license.txt'' file included with this distribution.