Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use more generic stash values
  • Loading branch information
kraih committed Mar 21, 2016
1 parent eb79af2 commit 9a9965e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -619,7 +619,7 @@ Prepare a C<302> redirect response, takes the same arguments as L</"url_for">.
=head2 render
my $bool = $c->render;
my $bool = $c->render(controller => 'foo', action => 'bar');
my $bool = $c->render(foo => 'bar', baz => 23);
my $bool = $c->render(template => 'foo/index');
my $bool = $c->render(template => 'index', format => 'html');
my $bool = $c->render(data => $bytes);
Expand Down Expand Up @@ -678,7 +678,7 @@ automatic rendering would result in a response.
=head2 render_maybe
my $bool = $c->render_maybe;
my $bool = $c->render_maybe(controller => 'foo', action => 'bar');
my $bool = $c->render_maybe(foo => 'bar', baz => 23);
my $bool = $c->render_maybe('foo/index', format => 'html');
Try to render content, but do not call
Expand Down

0 comments on commit 9a9965e

Please sign in to comment.