Skip to content

Commit

Permalink
more dots
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 25, 2012
1 parent fc2eb06 commit 3d9ea9e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Changes
@@ -1,5 +1,8 @@
This file documents the revision history for Perl extension Mojolicious.

2.47 2012-01-26 00:00:00
- Improved documentation.

2.46 2012-01-25 00:00:00
- Added EXPERIMENTAL request_timeout attribute to Mojo::UserAgent.
- Added EXPERIMENTAL text_after and text_before methods to Mojo::DOM.
Expand Down
6 changes: 6 additions & 0 deletions lib/Mojolicious.pm
Expand Up @@ -476,6 +476,7 @@ parsed.
$app->hook(after_build_tx => sub {
my ($tx, $app) = @_;
...
});
This is a very powerful hook and should not be used lightly, it makes some
Expand All @@ -489,6 +490,7 @@ Emitted right before the static and routes dispatchers start their work.
$app->hook(before_dispatch => sub {
my $c = shift;
...
});
Very useful for rewriting incoming requests and other preprocessing tasks.
Expand All @@ -501,6 +503,7 @@ file should be served and before the routes dispatcher starts its work.
$app->hook(after_static_dispatch => sub {
my $c = shift;
...
});
Mostly used for custom dispatchers and postprocessing static file responses.
Expand All @@ -513,6 +516,7 @@ hook can trigger before C<after_static_dispatch> due to its dynamic nature.
$app->hook(after_dispatch => sub {
my $c = shift;
...
});
Useful for all kinds of postprocessing tasks. (Passed the current controller
Expand All @@ -527,7 +531,9 @@ change without warning!
$app->hook(around_dispatch => sub {
my ($next, $c) = @_;
...
$next->();
...
});
This is a very powerful hook and should not be used lightly, consider it the
Expand Down

3 comments on commit 3d9ea9e

@judofyr
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dots!

@tempire
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I support this modification.

@kraih
Copy link
Member Author

@kraih kraih commented on 3d9ea9e Jan 26, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I support your support of this modification.

Please sign in to comment.