NAME
YAWF::Config - Configuration for YAWF
SYNOPSIS
my $object = YAWF::Config->new(
domain => $domain,
yawf => $SINGLETON,
);
DESCRIPTION
The YAWF configuration is done per-domain with a fallback structure.
This module holds the configuration of the current request.
METHODS
new
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.
SAMPLE
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
SUPPORT
No support is available
AUTHOR
Copyright 2010 Sebastian Willing.