Mailing List Archive

Patch for C::P::ConfigLoader
Hi,

With a suggestion from Tomas Doran I've made the following patch to the POD
of C::P::ConfigLoader:

Index: lib/Catalyst/Plugin/ConfigLoader.pm
===================================================================
--- lib/Catalyst/Plugin/ConfigLoader.pm (revision 8520)
+++ lib/Catalyst/Plugin/ConfigLoader.pm (working copy)
@@ -51,6 +51,14 @@

See L<Config::Any>'s C<driver_args> parameter for more information.

+As another example, if you want to use UTF-8 strings in MyApp.conf, use:
+
+ __PACKAGE__->config( 'Plugin::ConfigLoader' => {
+ driver => {
+ 'General' => {-UTF8 => 1},
+ }
+ } );
+
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.

Octavian


_______________________________________________
Catalyst-dev mailing list
Catalyst-dev@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev
Re: Patch for C::P::ConfigLoader [ In reply to ]
On Sun, Oct 12, 2008 at 12:48 PM, Octavian Rasnita <orasnita@gmail.com> wrote:
> Hi,
>
> With a suggestion from Tomas Doran I've made the following patch to the POD
> of C::P::ConfigLoader:

I've add this as a cookbook entry to Catalyst::Plugin::ConfigLoader::Manual. [1]

Thanks,

-Brian

[1] http://dev.catalystframework.org/svnweb/Catalyst/revision/?rev=8526

_______________________________________________
Catalyst-dev mailing list
Catalyst-dev@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev