Skip to content

Commit

Permalink
better descriptions for a few Mojolicious methods
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 26, 2012
1 parent a4dbbaf commit dd7a0dc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,6 +1,6 @@
This file documents the revision history for Perl extension Mojolicious.

2.54 2012-02-26 00:00:00
2.54 2012-02-27 00:00:00
- Deprecated class and method stash values in favor of controller and
action.
- Added EXPERIMENTAL patch function to Mojolicious::Lite.
Expand Down
6 changes: 4 additions & 2 deletions lib/Mojolicious.pm
Expand Up @@ -388,7 +388,8 @@ object.
$app = $app->defaults({foo => 'bar'});
$app = $app->defaults(foo => 'bar');
Default values for the stash, assigned for every new request.
Default values for L<Mojolicious::Controller/"stash">, assigned for every new
request.
$app->defaults->{foo} = 'bar';
my $foo = $app->defaults->{foo};
Expand All @@ -398,7 +399,7 @@ Default values for the stash, assigned for every new request.
$app->dispatch($c);
The heart of every Mojolicious application, calls the static and routes
The heart of every Mojolicious application, calls the C<static> and C<routes>
dispatchers for every request and passes them a L<Mojolicious::Controller>
object.
Expand Down Expand Up @@ -603,6 +604,7 @@ startup.
sub startup {
my $self = shift;
...
}
=head1 HELPERS
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -32,8 +32,8 @@ our $DEV_NOT_FOUND = $H->slurp_rel_file('not_found.development.html.ep');

# Reserved stash values
my @RESERVED = (
qw/action app cb class controller data extends format handler json layout/,
qw/method namespace partial path status template text/
qw/action app cb controller data extends format handler json layout/,
qw/namespace partial path status template text/
);
my %RESERVED;
$RESERVED{$_}++ for @RESERVED;
Expand Down

0 comments on commit dd7a0dc

Please sign in to comment.