# directory
use Catalyst qw/
- -Debug
ConfigLoader
StackTrace
Static::Simple
Session
Session::Store::FastMmap
Session::State::Cookie
+ Unicode::Encoding
/;
extends 'Catalyst';
# 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',
},
},
'Plugin::Session' => {
- flash_to_stash => 1
- }
+ flash_to_stash => 1,
+ },
+ default_view => 'HTML',
+ 'View::JSON' => {
+ expose_stash => 'json',
+ },
);
# Start the application