Skip to content

Commit

Permalink
fixed format examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 5, 2014
1 parent cbcf3c5 commit de087f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/Mojolicious/Lite.pm
Expand Up @@ -1129,8 +1129,9 @@ requests. See also the tutorial above for many more argument variations.
my $route = under sub {...};
my $route = under '/:foo' => sub {...};
my $route = under '/:foo' => {foo => 'bar'};
my $route = under '/:foo' => [foo => qr/\w+/];
my $route = under {format => 0};
my $route = under [format => 0];
Generate nested route with L<Mojolicious::Routes::Route/"under">, to which all
following routes are automatically appended. See also the tutorial above for
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojolicious/Routes/Route.pm
Expand Up @@ -557,8 +557,9 @@ Stringify the whole route.
my $route = $r->under(sub {...});
my $route = $r->under('/:foo' => sub {...});
my $route = $r->under('/:foo' => {foo => 'bar'});
my $route = $r->under('/:foo' => [foo => qr/\w+/]);
my $route = $r->under({format => 0});
my $route = $r->under([format => 0]);
Generate L<Mojolicious::Routes::Route> object for a nested route with its own
intermediate destination. See also the L<Mojolicious::Lite> tutorial for many
Expand Down

0 comments on commit de087f2

Please sign in to comment.