Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
updated some links in the documentation
  • Loading branch information
kraih committed Sep 11, 2014
1 parent 8ec15ea commit e58eded
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lib/Mojolicious.pm
Expand Up @@ -361,8 +361,9 @@ Useful for rewriting outgoing responses and other post-processing tasks.
Emitted right before the L</"before_dispatch"> hook and wraps around the whole
dispatch process, so you have to manually forward to the next hook if you want
to continue the chain. Default exception handling with
L<Mojolicious::Controller/"render_exception"> is the first hook in the chain
and a call to L</"dispatch"> the last, yours will be in between.
L<Mojolicious::Plugin::DefaultHelpers/"reply-E<gt>exception"> is the first
hook in the chain and a call to L</"dispatch"> the last, yours will be in
between.
$app->hook(around_dispatch => sub {
my ($next, $c) = @_;
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojolicious/Controller.pm
Expand Up @@ -676,7 +676,8 @@ automatic rendering would result in a response.
my $bool = $c->render_maybe(controller => 'foo', action => 'bar');
my $bool = $c->render_maybe('foo/index', format => 'html');
Try to render content, but do not call L</"render_not_found"> if no response
Try to render content, but do not call
L<Mojolicious::Plugin::DefaultHelpers/"reply-E<gt>not_found"> if no response
could be generated, takes the same arguments as L</"render">.
# Render template "index_local" only if it exists
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -548,7 +548,7 @@ the callback.
my $c = shift;
Mojo::IOLoop->timer(2 => sub {
eval { die 'This request will be getting a response' };
$c->render_exception($@) if $@;
$c->reply->exception($@) if $@;
});
};

Expand Down

0 comments on commit e58eded

Please sign in to comment.