wire layout_args, which was somehow never connected to the mix
[catagits/Reaction.git] / lib / ComponentUI / Controller / Root.pm
index e0935d9..9a2017f 100644 (file)
@@ -33,7 +33,16 @@ sub base :Chained('/') :PathPart('') :CaptureArgs(0) {
 
 sub root :Chained('base') :PathPart('') :Args(0) {
   my ($self, $c) = @_;
-  $self->push_viewport(ViewPort, layout => 'index');
+  $self->push_viewport(
+    ViewPort, (
+      layout => 'index',
+      layout_args => {
+        user_agent => $c->request->user_agent,
+        message_to_layout => 'I hate programming.',
+      },
+    ),
+  );
+  $c->log->debug('remote', $c->request->remote_user );
 }
 
 sub bye :Chained('base') :PathPart('bye') :Args(0) {