From: Brian Cassidy Date: Fri, 13 Jun 2008 18:03:46 +0000 (+0000) Subject: fix up pod to explain in more detail how to pass options to each driver class (Sergio... X-Git-Tag: v0.21~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=48b5d20db4bd235ec409b2ec4821a8e9118f0a3d;hp=b382957e4aa81c324c0dc74721a1b9558095981f;p=catagits%2FCatalyst-Plugin-ConfigLoader.git fix up pod to explain in more detail how to pass options to each driver class (Sergio Salvi) --- diff --git a/Changes b/Changes index bb68941..65bdb36 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,9 @@ Revision history for Perl extension Catalyst::Plugin::ConfigLoader. +0.21 XXXX + - fix up pod to explain in more detail how to pass options to each + driver class (Sergio Salvi) + 0.20 Fri May 02 2008 - sort configs by filename for loading (RT #31498) - updated pod with new example diff --git a/lib/Catalyst/Plugin/ConfigLoader.pm b/lib/Catalyst/Plugin/ConfigLoader.pm index 11c48d9..e9d683e 100644 --- a/lib/Catalyst/Plugin/ConfigLoader.pm +++ b/lib/Catalyst/Plugin/ConfigLoader.pm @@ -8,7 +8,7 @@ use NEXT; use Data::Visitor::Callback; use Catalyst::Utils (); -our $VERSION = '0.20'; +our $VERSION = '0.21'; =head1 NAME @@ -41,6 +41,15 @@ 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 Cconfig-E{ 'Plugin::ConfigLoader' }-E{ driver }>. +For example, to pass arguments to L, use the following: + + __PACKAGE__->config( 'Plugin::ConfigLoader' => { + driver => { + 'General' => { -LowerCaseNames => 1 } + } + } ); + +See L's C 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)