Skip to content

Commit

Permalink
added MIME type example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 10, 2011
1 parent a992198 commit 8d9a0f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/Mojolicious/Lite.pm
Expand Up @@ -495,6 +495,11 @@ C<RESTful> content negotiation you can also use C<respond_to>.
);
};
MIME type mappings can be extended or changed easily with
L<Mojolicious/"types">.
app->types->type(rdf => 'application/rdf+xml');
=head2 Under
Authentication and code shared between multiple routes can be realized easily
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojolicious/Renderer.pm
Expand Up @@ -293,7 +293,8 @@ Note that this attribute is EXPERIMENTAL and might change without warning!
$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 renderer will use L<Mojolicious/"types"> to look up the content MIME
type.
=head2 C<default_handler>
Expand Down

0 comments on commit 8d9a0f3

Please sign in to comment.