Skip to content

Commit

Permalink
use typed placeholders in all examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 18, 2016
1 parent f4c55e5 commit ecd7f7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Routing.pod
Expand Up @@ -134,7 +134,7 @@ characters except C</>, similar to the regular expression C<([^/]+)>.
This can be especially useful for manually matching file names with extensions,
rather than using L<format detection|/"Formats">.

/music/song.mp3 -> /music/#filename -> {filename => 'song.mp3'}
/music/song.mp3 -> /music/(filename:relaxed) -> {filename => 'song.mp3'}

The type L<Mojolicious::Routes::Pattern/"wildcard"> is very similar, but it
allows your placeholders to match absolutely everything, including C</> and
Expand Down

0 comments on commit ecd7f7e

Please sign in to comment.