Load config files of various types
This module will attempt to load find and load a configuration file of
various types. Currently it supports YAML, JSON, XML, INI and Perl formats.
Special configuration for a particular driver format can be stored in
'MyApp->config->{ 'Plugin::ConfigLoader' }->{ driver }'. For example, to
pass arguments to the Config::General manpage, use the following:
__PACKAGE__->config( 'Plugin::ConfigLoader' => {
driver => {
'General' => { -LowerCaseNames => 1 }
}
} );
See the Config::Any manpage's 'driver_args' parameter for more information.
To support the distinction between development and production environments,
this module will also attemp to load a local config (e.g. myapp_local.yaml)
which will override any duplicate settings. See /get_config_local_suffix
for details on how this is configured.
- Links to devel:languages:perl / perl-Cata...igLoader
- Has a link diff
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout home:rootprompt/perl-Catalyst-Plugin-ConfigLoader && cd $_
- Create Badge
Source Files (show merged sources derived from linked package)
Filename | Size | Changed |
---|---|---|
Catalyst-Plugin-ConfigLoader-0.35.tar.gz | 0000021901 21.4 KB | |
_link | 0000000128 128 Bytes | |
cpanspec.yml | 0000000669 669 Bytes | |
perl-Catalyst-Plugin-ConfigLoader.changes | 0000001524 1.49 KB | |
perl-Catalyst-Plugin-ConfigLoader.spec | 0000002850 2.78 KB |
Comments 0