Skip to content

Commit

Permalink
better examples for render method
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 13, 2015
1 parent 7ff9053 commit b21fd0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -682,13 +682,13 @@ the L</"stash">.
# Render template "foo/bar.html.ep"
$c->render(template => 'foo/bar', format => 'html', handler => 'ep');
# Render template "foo/bar.*.*"
$c->render(template => 'foo/bar');
# Render template "test.*.*" with arbitrary values "foo" and "bar"
$c->render(template => 'test', foo => 'test', bar => 23);
# Render template "test.xml.*"
$c->render(template => 'test', format => 'xml');
# Render template "test.xml.*" (alternative)
$c->render('test', format => 'xml');
=head2 render_later
Expand Down

0 comments on commit b21fd0a

Please sign in to comment.