first cut of Reaction::UI::Skin and SiteLayout VP+widget
[catagits/Reaction.git] / lib / ComponentUI / Controller / Root.pm
index 567cf3b..2e2a181 100644 (file)
@@ -2,10 +2,11 @@ package ComponentUI::Controller::Root;
 
 use strict;
 use warnings;
-use base 'Reaction::UI::RootController';
+use base 'Reaction::UI::Controller::Root';
 use Reaction::Class;
 
 use aliased 'Reaction::UI::ViewPort';
+use aliased 'Reaction::UI::ViewPort::SiteLayout';
 
 #
 # Sets the actions in this controller to be registered with no prefix
@@ -19,7 +20,10 @@ __PACKAGE__->config(
 
 sub base :Chained('/') :PathPart('') :CaptureArgs(0) {
   my ($self, $c) = @_;
-  $self->push_viewport(ViewPort, layout => 'layout');
+  $self->push_viewport(SiteLayout,
+    title => 'ComponentUI test title',
+    static_base_uri => "${\$c->uri_for('static')}",
+  );
 }
 
 sub root :Chained('base') :PathPart('') :Args(0) {