Skip to content

Commit

Permalink
more documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 5, 2013
1 parent 81479c3 commit d43d095
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/Mojolicious/Renderer.pm
Expand Up @@ -265,7 +265,8 @@ highest precedence, defaults to C<main>.
my $default = $renderer->default_format;
$renderer = $renderer->default_format('html');
The default format to render if C<format> is not set in the stash.
The default format to render if C<format> is not set in the stash. The
renderer will use L<Mojolicious/"types"> to look up the content MIME type.
=head2 C<default_handler>
Expand Down Expand Up @@ -342,8 +343,8 @@ Get a C<DATA> section template by name, usually used by handlers.
=head2 C<render>
my ($output, $format) = $renderer->render(Mojolicious::Controller->new);
my ($output, $format) = $renderer->render(Mojolicious::Controller->new, {
my ($output, $type) = $renderer->render(Mojolicious::Controller->new);
my ($output, $type) = $renderer->render(Mojolicious::Controller->new, {
template => 'foo/bar',
foo => 'bar'
});
Expand Down

0 comments on commit d43d095

Please sign in to comment.