Skip to content

Commit

Permalink
documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 29, 2013
1 parent 662973e commit 38f6012
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions lib/Mojolicious.pm
Expand Up @@ -123,7 +123,7 @@ sub dispatch {
# DEPRECATED in Rainbow!
if ($plugins->has_subscribers('after_static_dispatch')) {
warn <<EOF and $plugins->emit_hook_reverse(after_static_dispatch => $c);
after_static_dispatch hook is DEPRECATED in favor of before_routes hook!!!
after_static_dispatch hook is DEPRECATED in favor of before_routes!!!
EOF
}

Expand Down Expand Up @@ -382,7 +382,7 @@ new ones.
Construct a new L<Mojolicious> application, calling C<${mode}_mode> and
C<startup> in the process. Will automatically detect your home directory and
set up logging based on your current operating mode. Also sets up the
renderer, static dispatcher and a default set of plugins.
renderer, static file server and a default set of plugins.
=head2 build_tx
Expand Down Expand Up @@ -474,7 +474,7 @@ application object)
=item before_dispatch
Emitted right before the static dispatcher and router start their work.
Emitted right before the static file server and router start their work.
$app->hook(before_dispatch => sub {
my $c = shift;
Expand All @@ -486,8 +486,7 @@ Very useful for rewriting incoming requests and other preprocessing tasks.
=item after_static
Emitted after the static dispatcher determined that a static file should be
served.
Emitted after the static file server decided to serve a static file.
$app->hook(after_static => sub {
my $c = shift;
Expand All @@ -499,8 +498,8 @@ controller object)
=item before_routes
Emitted after the static dispatcher determined if a static file should be
served and before the router starts its work.
Emitted after the static file server decided if a static file should be served
and before the router starts its work.
$app->hook(before_routes => sub {
my $c = shift;
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Static.pm
Expand Up @@ -135,7 +135,7 @@ Mojolicious::Static - Serve static files
=head1 DESCRIPTION
L<Mojolicious::Static> is a dispatcher for static files with C<Range> and
L<Mojolicious::Static> is a static file server with C<Range> and
C<If-Modified-Since> support.
=head1 ATTRIBUTES
Expand Down

0 comments on commit 38f6012

Please sign in to comment.