Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use selector in example
  • Loading branch information
kraih committed Apr 10, 2013
1 parent 6e341ee commit 08b69fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Expand Up @@ -84,8 +84,7 @@
post '/title' => sub {
my $self = shift;
my $url = $self->param('url') || 'http://mojolicio.us';
$self->render_text(
$self->ua->get($url)->res->dom->html->head->title->text);
$self->render_text($self->ua->get($url)->res->dom->at('title')->text);
};

# WebSocket echo service
Expand Down

0 comments on commit 08b69fc

Please sign in to comment.