Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tighten up the format detection faq
  • Loading branch information
jberger committed Feb 24, 2015
1 parent 7635abc commit 2f579a6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/Mojolicious/Guides/FAQ.pod
Expand Up @@ -227,12 +227,11 @@ L<Mojo::Server::Prefork/"heartbeat_timeout"> if your application requires it.

=head2 Why is the file extension missing from the stash value?

Mojolicious detects L<Mojolicious::Guides::Routing/Formats> by default. The
file extension is then available via the stash key C<format>. Note that
L<Mojolicious::Guides::Routing/"Generic placeholders"> do not match a C<.>
in order to make format detection easier. To match the extension manually,
use L<Mojolicious::Guides::Routing/"Relaxed placeholders"> or
L<Mojolicious::Guides::Routing/"Wildcard placeholders">.
Mojolicious detects file formats by default (see
L<Mojolicious::Guides::Routing/Formats>). The file extension is then available
via the stash value C<format>. To match a file name with an extension
manually, consider using
L<Mojolicious::Guides::Routing/"Relaxed placeholders">.

=head1 MORE

Expand Down

0 comments on commit 2f579a6

Please sign in to comment.