slight change for saner behavior when munging names
[catagits/Reaction.git] / lib / ComponentUI / Controller / Root.pm
CommitLineData
7adfd53f 1package ComponentUI::Controller::Root;
2
3use strict;
4use warnings;
5use base 'Reaction::UI::RootController';
6use Reaction::Class;
7
8use aliased 'Reaction::UI::ViewPort';
9
10#
11# Sets the actions in this controller to be registered with no prefix
12# so they function identically to actions created in MyApp.pm
13#
14__PACKAGE__->config(
15 view_name => 'XHTML',
16 window_title => 'Reaction Test App',
17 content_type => 'text/html',
18 namespace => '',
19);
20
21sub base :Chained('/') :PathPart('') :CaptureArgs(0) {
22 my ($self, $c) = @_;
23 $self->push_viewport(ViewPort, layout => 'xhtml');
24}
25
26sub root :Chained('base') :PathPart('') :Args(0) {
27 my ($self, $c) = @_;
28 $self->push_viewport(ViewPort, layout => 'index');
29}
30
311;