Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
more consistent rendering examples
  • Loading branch information
kraih committed Apr 19, 2013
1 parent 8519c0d commit 97f3e1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -85,7 +85,8 @@
post '/title' => sub {
my $self = shift;
my $url = $self->param('url') || 'http://mojolicio.us';
$self->render_text($self->ua->get($url)->res->dom->at('title')->text);
$self->render(
text => $self->ua->get($url)->res->dom->at('title')->text);
};

# WebSocket echo service
Expand Down

0 comments on commit 97f3e1d

Please sign in to comment.