Skip to content

Commit

Permalink
mention cheatsheet in routing guide
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 30, 2011
1 parent c8b2da6 commit 5590218
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -352,9 +352,9 @@ above C<250KB> into a temporary file.
my $tx = $ua->get('latest.mojolicio.us');
$tx->res->content->asset->move_to('mojo.tar.gz');

To protect you from excessively large files there is also a global limit of
C<5MB> by default, which you can tweak with the C<MOJO_MAX_MESSAGE_SIZE>
environment variable.
To protect you from excessively large files there is also a limit of C<5MB>
by default, which you can tweak with the C<MOJO_MAX_MESSAGE_SIZE> environment
variable.

# Increase limit to 1GB
$ENV{MOJO_MAX_MESSAGE_SIZE} = 1073741824;
Expand Down
6 changes: 4 additions & 2 deletions lib/Mojolicious/Guides/Routing.pod
Expand Up @@ -196,8 +196,7 @@ hash to try and find appropriate code to generate a response.

The generated hash of a matching route is actually the center of the whole
L<Mojolicious> request cycle.
We call it the stash, and it is basically a global namespace that persists
until a response has been generated.
We call it the stash, and it persists until a response has been generated.

# /bye -> {controller => 'foo', action => 'bye', mymessage => 'Bye!'}
$r->route('/bye')
Expand All @@ -218,6 +217,9 @@ Once dispatched the whole stash content can be changed at any time.
$self->stash(mymessage => 'Welcome!');
}

A full list of all reserved stash values can also be found in
L<Mojolicious::Guides::Cheatsheet>.

=head2 Special stash values (C<controller> and C<action>)

When the dispatcher sees C<controller> and C<action> values in the stash it
Expand Down
6 changes: 3 additions & 3 deletions lib/Mojolicious/Lite.pm
Expand Up @@ -676,9 +676,9 @@ C<250KB> will be automatically streamed into a temporary file.
</body>
</html>
To protect you from excessively large files there is also a global limit of
C<5MB> by default, which you can tweak with the C<MOJO_MAX_MESSAGE_SIZE>
environment variable.
To protect you from excessively large files there is also a limit of C<5MB>
by default, which you can tweak with the C<MOJO_MAX_MESSAGE_SIZE> environment
variable.
# Increase limit to 1GB
$ENV{MOJO_MAX_MESSAGE_SIZE} = 1073741824;
Expand Down

0 comments on commit 5590218

Please sign in to comment.