Skip to content
Browse files

the user's homepage (controller)

  • Loading branch information...
1 parent 0605ef1 commit e59bd6f066eb564420eef71313cfc8244e8e06dd @garu committed
Showing with 12 additions and 0 deletions.
  1. +12 −0 tweetylicious.pl
View
12 tweetylicious.pl
@@ -118,6 +118,18 @@ package main;
};
+# this controls a user's page
+get '/:user' => sub {
+ my $self = shift;
+ my $user = $self->param('user');
+
+ # fill our stash with information for the template
+ $self->stash(
+ user => Model::User->load( $user ),
+ );
+} => 'homepage';
+
+
# let's rock and roll!
shagadelic;

0 comments on commit e59bd6f

Please sign in to comment.
Something went wrong with that request. Please try again.