Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
better explanation for request methods used for static files
  • Loading branch information
kraih committed Aug 17, 2014
1 parent ac3de43 commit 3e09f14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Mojolicious/Lite.pm
Expand Up @@ -705,7 +705,7 @@ L<Mojolicious/"types">.
Similar to templates, but with only a single file extension and optional
Base64 encoding, static files can be inlined in the C<DATA> section and are
served automatically for C<GET> and C<HEAD> requests.
served automatically.
use Mojolicious::Lite;
Expand All @@ -718,14 +718,14 @@ served automatically for C<GET> and C<HEAD> requests.
@@ test.txt (base64)
dGVzdCAxMjMKbGFsYWxh
External static files are not limited to a single file extension and will also
be served automatically from a C<public> directory if it exists.
External static files are not limited to a single file extension and will be
served automatically from a C<public> directory if it exists.
$ mkdir public
$ mv something.js public/something.js
$ mv mojolicious.tar.gz public/mojolicious.tar.gz
Both have a higher precedence than routes.
Both have a higher precedence than routes for C<GET> and C<HEAD> requests.
=head2 External templates
Expand Down

0 comments on commit 3e09f14

Please sign in to comment.