From: Brian Cassidy Date: Thu, 28 Sep 2006 15:43:32 +0000 (+0000) Subject: started a user manual X-Git-Tag: v0.14~8^2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-ConfigLoader.git;a=commitdiff_plain;h=affbca23733c05f822f786873e116694942bb60c started a user manual --- diff --git a/Changes b/Changes index ef46e9d..b5f7d86 100644 --- a/Changes +++ b/Changes @@ -1,4 +1,7 @@ Revision history for Perl extension Catalyst::Plugin::ConfigLoader. + +0.14 Thu Sep 28 2006 + - added a user manual 0.13 Fri Aug 25 2006 - loading code factored out into Config::Any [rataxis@cpan.org] diff --git a/MANIFEST b/MANIFEST index b5c6971..c5b698e 100644 --- a/MANIFEST +++ b/MANIFEST @@ -1,6 +1,7 @@ Build.PL Changes lib/Catalyst/Plugin/ConfigLoader.pm +lib/Catalyst/Plugin/ConfigLoader/Manual.pod MANIFEST t/01-use.t t/10-live_auto.t diff --git a/lib/Catalyst/Plugin/ConfigLoader.pm b/lib/Catalyst/Plugin/ConfigLoader.pm index 99500ec..bf688d0 100644 --- a/lib/Catalyst/Plugin/ConfigLoader.pm +++ b/lib/Catalyst/Plugin/ConfigLoader.pm @@ -7,7 +7,7 @@ use Config::Any; use NEXT; use Data::Visitor::Callback; -our $VERSION = '0.13'; +our $VERSION = '0.14'; =head1 NAME @@ -277,6 +277,8 @@ it under the same terms as Perl itself. =item * L +=item * L + =item * L =back diff --git a/lib/Catalyst/Plugin/ConfigLoader/Manual.pod b/lib/Catalyst/Plugin/ConfigLoader/Manual.pod new file mode 100644 index 0000000..3558e69 --- /dev/null +++ b/lib/Catalyst/Plugin/ConfigLoader/Manual.pod @@ -0,0 +1,78 @@ +=head1 NAME + +Catalyst::Plugin::ConfigLoader::Manual - Guide to using the ConfigLoader plugin + +=head1 BASIC USAGE + + package MyApp; + + use Catalyst qw( ConfigLoader ... ); + +=head1 CONFIG FORMATS + +=head2 Config::General + + name = TestApp + + foo bar + + + qux xyzzy + + +=head2 INI + + name=TestApp + + [Controller::Foo] + foo=bar + + [Model::Baz] + qux=xyzzy + +=head2 JSON + + { + "name": "TestApp", + "Controller::Foo": { + "foo": "bar" + }, + "Model::Baz": { + "qux": "xyzzy" + } + } + +=head2 Perl + + { + name => 'TestApp', + 'Controller::Foo' => { + foo => 'bar' + }, + 'Model::Baz' => { + qux => 'xyzzy' + } + } + +=head2 XML + + + TestApp + + bar + + + xyzzy + + + +=head2 YAML + + --- + name: TestApp + Controller::Foo: + foo: bar + Model::Baz: + qux: xyzzy + +=cut