Skip to content

Commit

Permalink
added relaxed placeholder recipe to tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 16, 2012
1 parent 575b43c commit 08ce0f3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/Mojolicious/Lite.pm
Expand Up @@ -361,6 +361,20 @@ L<Mojolicious::Controller/"stash"> and L<Mojolicious::Controller/"param">.
$self->render(text => "Our :bar placeholder matched $bar");
};
=head2 Relaxed Placeholders
Relaxed placeholders allow matching of everything until a C</> occurs.
# /test/hello
# /test123/hello
# /test.123/hello
get '/#you/hello' => 'groovy';
__DATA__
@@ groovy.html.ep
Your name is <%= $you %>.
=head2 Wildcard placeholders
Wildcard placeholders allow matching absolutely everything, including
Expand Down

0 comments on commit 08ce0f3

Please sign in to comment.