X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=lib%2FChatty.pm;h=80772e7d8948353e1ada7930bf1ecfe2f7f07bb5;hb=afee0e0191a4808f3c9fcc13de5db87a83fc0cb4;hp=72353a7ff8c1ce3e0397d13640a6dd4258472993;hpb=9b343fd3d0f46473e2f5804ac09caeaed95e4283;p=chaz%2Fchatty diff --git a/lib/Chatty.pm b/lib/Chatty.pm index 72353a7..80772e7 100644 --- a/lib/Chatty.pm +++ b/lib/Chatty.pm @@ -17,7 +17,6 @@ use Catalyst::Runtime 5.80; # directory use Catalyst qw/ - -Debug ConfigLoader StackTrace Static::Simple @@ -25,6 +24,7 @@ use Catalyst qw/ Session Session::Store::FastMmap Session::State::Cookie + Unicode::Encoding /; extends 'Catalyst'; @@ -41,12 +41,9 @@ our $VERSION = '0.01'; # local deployment. __PACKAGE__->config( - name => 'Chatty', - # Disable deprecated behavior needed by old applications - disable_component_resolution_regex_fallback => 1, -); - -__PACKAGE__->config( + name => 'Chatty', + # Disable deprecated behavior needed by old applications + disable_component_resolution_regex_fallback => 1, 'Plugin::Authentication' => { default => { class => 'SimpleDB', @@ -55,8 +52,12 @@ __PACKAGE__->config( }, }, 'Plugin::Session' => { - flash_to_stash => 1 - } + flash_to_stash => 1, + }, + default_view => 'HTML', + 'View::JSON' => { + expose_stash => 'json', + }, ); # Start the application