Skip to content

Commit

Permalink
better respond_to example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 5, 2012
1 parent 51a4d22 commit a038cec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changes
@@ -1,6 +1,7 @@
This file documents the revision history for Perl extension Mojolicious.

2.94 2012-05-06
- Improved documentation.
- Fixed small backlog bug in Mojo::Server::Daemon.

2.93 2012-05-05
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -826,8 +826,8 @@ L<Mojo::Message::Response> object.
=head2 C<respond_to>
$c->respond_to(
json => sub {...},
xml => {text => 'hello!'},
json => {json => {message => 'Welcome!'}},
html => {template => 'welcome'},
any => sub {...}
);
Expand Down

0 comments on commit a038cec

Please sign in to comment.