Skip to content

Commit

Permalink
show subroutine signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 21, 2014
1 parent 3b04921 commit 033740f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

5.43 2014-09-19
5.43 2014-09-21

5.42 2014-09-17
- Fixed url_for bug where an unnecessary slash could be rendered before
Expand Down
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -66,16 +66,16 @@ app->start;
applications.

```perl
use 5.20.0;
use experimental 'signatures';
use Mojolicious::Lite;

# Render template "index.html.ep" from the DATA section
get '/' => {template => 'index'};

# WebSocket service used by the template to extract the title from a web site
websocket '/title' => sub {
my $c = shift;
$c->on(message => sub {
my ($c, $msg) = @_;
websocket '/title' => sub ($c) {
$c->on(message => sub ($c, $msg) {
my $title = $c->ua->get($msg)->res->dom->at('title')->text;
$c->send($title);
});
Expand Down

0 comments on commit 033740f

Please sign in to comment.