YAWF::Config - Configuration for YAWF
my $object = YAWF::Config->new( domain => $domain, yawf => $SINGLETON, );
The YAWF configuration is done per-domain with a fallback structure.
This module holds the configuration of the current request.
my $object = YAWF::Config->new( domain => 'www.foo.bar', yawf => $SINGLETON, );
Loads the configuration for the specified domain.
Falls back through the domain levels if no config is found: www.foo.bar *.foo.bar foo.bar *.bar bar *
Returns the configuration object or undef in case of an error.
Here is a full example of a config file:
--- foo.bar: domain: www.foo.bar database: dbi: dbi:SQLite:dbname=/var/db/foo.bar username: none password: none database: /var/db/foo.bar class: Foo::DB handlerprefix: FooBarWeb template_dir: /var/www/foo.bar/templates no_default_templates: 1 session: cookie: 1 timeout: 86400
No support is available
Copyright 2010 Sebastian Willing.
To install YAWF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm YAWF
CPAN shell
perl -MCPAN -e shell install YAWF
For more information on module installation, please visit the detailed CPAN module installation guide.