Skip to content

Commit

Permalink
Fix example code
Browse files Browse the repository at this point in the history
  • Loading branch information
ambs committed Sep 4, 2011
1 parent cc8598d commit e8ac6f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dancer/Cookbook.pod
Expand Up @@ -492,7 +492,7 @@ interpolate in the view (note that for convenience, the request, session, params
and vars are automatically accessible in the view, named C<request>, C<session>,
C<params> and C<vars>) - for example:

before => sub { var time => localtime() };
before => sub { var time => scalar(localtime) };

get '/hello/:name' => sub {
my $name = params->{name};
Expand Down

0 comments on commit e8ac6f2

Please sign in to comment.