Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mention that after_render can trigger out of order
  • Loading branch information
kraih committed Jan 6, 2013
1 parent f168976 commit 7909f3a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/Mojolicious.pm
Expand Up @@ -488,6 +488,9 @@ Mostly used for custom dispatchers and post-processing static file responses.
=item C<after_render>
Emitted after content has been generated by the renderer that is not partial.
Note that this hook can trigger out of order due to its dynamic nature, and
with embedded applications will only work for the application rendering the
response.
$app->hook(after_render => sub {
my ($c, $output, $format) = @_;
Expand All @@ -500,9 +503,8 @@ current controller object, a reference to the content and the format)
=item C<after_dispatch>
Emitted in reverse order after a response has been rendered. Note that this
hook can trigger before C<after_static_dispatch> due to its dynamic nature,
and with embedded applications will only work for the application rendering
the response.
hook can trigger out of order due to its dynamic nature, and with embedded
applications will only work for the application rendering the response.
$app->hook(after_dispatch => sub {
my $c = shift;
Expand Down

0 comments on commit 7909f3a

Please sign in to comment.