The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

OurCal::Config - a default config reader

SYNOPSIS

    image_url     = images
    template_path = templates

    [providers]
    providers = default birthday dopplr

    [default]
    dsn  = dbi:SQLite:ourcal
    type = dbi

    [birthday]
    file = ics/birthdays.ics
    type = icalendar

    [dopplr_cache]
    type  = cache
    dir   = .cache
    child = dopplr

    [dopplr]
    file  = http://www.dopplr.com/traveller/ical/user/d34dbeefd34dbeefd34dbeefd34dbeefd34dbeef.ics
    type  = icalendar

FORMAT

Generic Config

Then generic configuration contain key value pairs for non specific config values.

Provider Specific Config

Each provider can have specific config options in a named section.

METHODS

new <param[s]>

Must be given a file param which gives a path to an .ini type file.

config [name]

Returns a hashref containin the config for a give section or the generic config if no name is given.