aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ComponentUI/Controller/Root.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ComponentUI/Controller/Root.pm')
-rw-r--r--lib/ComponentUI/Controller/Root.pm11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/ComponentUI/Controller/Root.pm b/lib/ComponentUI/Controller/Root.pm
index e0935d9..9a2017f 100644
--- a/lib/ComponentUI/Controller/Root.pm
+++ b/lib/ComponentUI/Controller/Root.pm
@@ -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) {