From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

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]
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.