[Catalyst-dev] Patch for C::P::ConfigLoader
Octavian Rasnita
orasnita at gmail.com
Sun Oct 12 16:48:14 BST 2008
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
More information about the Catalyst-dev
mailing list