Skip to content

Commit

Permalink
more render examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 3, 2014
1 parent b3268d6 commit 1758614
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -698,10 +698,13 @@ the L</"stash">.
$c->render(json => {test => 'I ♥ Mojolicious!'});
# Render template "foo/bar.html.ep"
$c->render('foo/bar', format => 'html', handler => 'ep');
$c->render(template => 'foo/bar', format => 'html', handler => 'ep');
# Render template "foo/bar.*.*"
$c->render('foo/bar');
$c->render(template => 'foo/bar');
# Render template "test.xml.*"
$c->render('test', format => 'xml');
=head2 render_exception
Expand Down

0 comments on commit 1758614

Please sign in to comment.