Skip to content

Commit

Permalink
relaxed placeholders are good for file extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
jberger committed Feb 24, 2015
1 parent a5a6ee4 commit 3879c2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Mojolicious/Guides/Routing.pod
Expand Up @@ -131,6 +131,11 @@ C<([^/]+)>.
/sebastian23/hello -> /#name/hello -> {name => 'sebastian23'}
/sebastian 23/hello -> /#name/hello -> {name => 'sebastian 23'}

Relaxed placeholders are especially useful for manually matching file names
with extensions rather than using L<"Format detection"|/"Formats">.

/music/song.mp3 -> /music/#filename -> {filename => 'song.mp3'}

=head2 Wildcard placeholders

Wildcard placeholders are just like the two placeholders above, but use an
Expand Down

1 comment on commit 3879c2f

@marcusramberg
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃 ✨ 💖

Please sign in to comment.