Skip to content

Commit

Permalink
documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 5, 2013
1 parent c292e76 commit 81479c3
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 15 deletions.
15 changes: 6 additions & 9 deletions lib/Mojolicious/Renderer.pm
Expand Up @@ -222,7 +222,7 @@ sub _text {

=head1 NAME
Mojolicious::Renderer - MIME type based renderer
Mojolicious::Renderer - Generate dynamic content
=head1 SYNOPSIS
Expand Down Expand Up @@ -265,8 +265,7 @@ 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
renderer will use L<Mojolicious/"types"> to look up the content MIME type.
The default format to render if C<format> is not set in the stash.
=head2 C<default_handler>
Expand Down Expand Up @@ -310,7 +309,7 @@ Directories to look for templates in, first one has the highest precedence.
=head1 METHODS
L<Mojolicious::Renderer> inherits all methods from L<Mojo::Base> and
implements the following ones.
implements the following new ones.
=head2 C<new>
Expand Down Expand Up @@ -343,15 +342,13 @@ Get a C<DATA> section template by name, usually used by handlers.
=head2 C<render>
my ($output, $type) = $renderer->render(Mojolicious::Controller->new);
my ($output, $type) = $renderer->render(Mojolicious::Controller->new, {
my ($output, $format) = $renderer->render(Mojolicious::Controller->new);
my ($output, $format) = $renderer->render(Mojolicious::Controller->new, {
template => 'foo/bar',
foo => 'bar'
});
Render output through one of the Mojo renderers. This renderer requires some
configuration, at the very least you will need to have a default C<format> and
a default C<handler> as well as a C<template> or C<text>/C<json>. See
Render output through one of the renderers. See
L<Mojolicious::Controller/"render"> for a more user-friendly interface.
=head2 C<template_name>
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Routes.pm
Expand Up @@ -349,7 +349,7 @@ Contains all available shortcuts.
=head1 METHODS
L<Mojolicious::Routes> inherits all methods from
L<Mojolicious::Routes::Route> and implements the following ones.
L<Mojolicious::Routes::Route> and implements the following new ones.
=head2 C<add_condition>
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Routes/Match.pm
Expand Up @@ -201,7 +201,7 @@ Captured parameters with nesting history.
=head1 METHODS
L<Mojolicious::Routes::Match> inherits all methods from L<Mojo::Base> and
implements the following ones.
implements the following new ones.
=head2 C<new>
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Routes/Pattern.pm
Expand Up @@ -365,7 +365,7 @@ Character indicating the start of a wildcard placeholder, defaults to C<*>.
=head1 METHODS
L<Mojolicious::Routes::Pattern> inherits all methods from L<Mojo::Base> and
implements the following ones.
implements the following new ones.
=head2 C<new>
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Routes/Route.pm
Expand Up @@ -324,7 +324,7 @@ Pattern for this route, defaults to a L<Mojolicious::Routes::Pattern> object.
=head1 METHODS
L<Mojolicious::Routes::Route> inherits all methods from L<Mojo::Base> and
implements the following ones.
implements the following new ones.
=head2 C<new>
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Static.pm
Expand Up @@ -169,7 +169,7 @@ Directories to serve static files from, first one has the highest precedence.
=head1 METHODS
L<Mojolicious::Static> inherits all methods from L<Mojo::Base> and implements
the following ones.
the following new ones.
=head2 C<dispatch>
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Types.pm
Expand Up @@ -122,7 +122,7 @@ List of MIME types.
=head1 METHODS
L<Mojolicious::Types> inherits all methods from L<Mojo::Base> and implements
the following ones.
the following new ones.
=head2 C<detect>
Expand Down

0 comments on commit 81479c3

Please sign in to comment.