6 use Catalyst; # qw/-Debug/;
13 default_message => 'hi',
14 default_view => 'Pkgconfig',
15 'View::TT::Appconfig' => {
18 TEMPLATE_EXTENSION => '.tt',
24 sub default : Private {
27 $c->response->redirect($c->uri_for('test'));
33 $c->stash->{message} = ($c->request->param('message') || $c->config->{default_message});
36 sub test_includepath : Local {
38 $c->stash->{message} = ($c->request->param('message') || $c->config->{default_message});
39 $c->stash->{template} = $c->request->param('template');
40 if ( $c->request->param('additionalpath') ){
41 my $additionalpath = Path::Class::dir($c->config->{root}, $c->request->param('additionalpath'));
42 $c->stash->{additional_template_paths} = ["$additionalpath"];
49 return 1 if $c->response->status =~ /^3\d\d$/;
50 return 1 if $c->response->body;
52 my $view = 'View::TT::' . ($c->request->param('view') || $c->config->{default_view});