=head1 NAME Catalyst::Plugin::ConfigLoader::Manual - Guide to using the ConfigLoader plugin =head1 BASIC USAGE package MyApp; use Catalyst qw( ConfigLoader ... ); =head1 ENVIRONMENT VARIABLES =over 4 =item * C - specific config file to load for "MyApp" =item * C - global suffix for extra config files =item * C - suffix specifically for "MyApp" =back =head1 CONFIG FORMATS =head2 Config::General =head3 Extensions =over 4 =item * cnf =item * conf =back =head3 Example Config name = TestApp foo bar qux xyzzy =head2 INI =head3 Extensions =over 4 =item * ini =back =head3 Example Config name=TestApp [Controller::Foo] foo=bar [Model::Baz] qux=xyzzy =head2 JSON =head3 Extensions =over 4 =item * jsn =item * json =back =head3 Example Config { "name": "TestApp", "Controller::Foo": { "foo": "bar" }, "Model::Baz": { "qux": "xyzzy" } } =head2 Perl =head3 Extensions =over 4 =item * pl =item * perl =back =head3 Example Config { name => 'TestApp', 'Controller::Foo' => { foo => 'bar' }, 'Model::Baz' => { qux => 'xyzzy' } } =head2 XML =head3 Extensions =over 4 =item * xml =back =head3 Example Config TestApp bar xyzzy =head2 YAML =head3 Extensions =over 4 =item * yml =item * yaml =back =head3 Example Config --- name: TestApp Controller::Foo: foo: bar Model::Baz: qux: xyzzy =head1 COOKBOOK =head2 Configuring a Catalyst::Model::DBIC::Schema model from a YAML config Model::MyModel: schema_class: MyApp::MySchema connect_info: - dbi:SQLite:myapp.db - '' - '' - AutoCommit: 1 =head2 Converting your existing config to Config::General format As of L 1.07, a newly created application will use L for configuration. If you wish to convert your existing config, run the following one-liner (replacing MyApp with your app's name): perl -Ilib -MMyApp -MConfig::General -e 'Config::General->new->save_file("myapp.conf", MyApp->config);' =cut