Catalyst::Plugin::Config::JSON - Configure your Catalyst application via an external JSON file
use Catalyst 'Config::JSON'; __PACKAGE__->config('config_file' => 'config.json');
This Catalyst plugin enables you to configure your Catalyst application with an external JSON file instead of somewhere in your application code.
This is useful for example if you want to quickly change the configuration for different deployment environments (like development, testing or production) without changing your code.
The configuration file is assumed to be in your application home. Its name can be specified with the config parameter
config_file (default is config.json).
For any keys in the configuration file that start with
Catalyst::, the corresponding value is taken as the configuration for that class.
Catalyst::Plugin::Config::YAML by Bernhard Bauer, <email@example.com>
Tweaked for JSON by Sam Vilain, <firstname.lastname@example.org>
COPYRIGHT AND LICENSE
Copyright 2005 by Sam Vilain
Copyright 2005 by Bernhard Bauer
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.