Skip to content

Commit

Permalink
fixed POD formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 17, 2011
1 parent f075d6d commit d41f5e9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
23 changes: 11 additions & 12 deletions lib/Mojolicious.pm
Expand Up @@ -361,9 +361,9 @@ this in your startup method to define the url endpoints for your application.
$app = $app->secret('passw0rd');
A secret passphrase used for signed cookies and the like, defaults to the
application name which is not very secure, so you should change it!!!
As long as you are using the unsecure default there will be debug messages in
the log file reminding you to change your passphrase.
application name which is not very secure, so you should change it!!! As long
as you are using the unsecure default there will be debug messages in the log
file reminding you to change your passphrase.
=head2 C<sessions>
Expand Down Expand Up @@ -462,10 +462,10 @@ and the application object, as well as a function in C<ep> templates.
Extend L<Mojolicious> by adding hooks.
# Dispatchers will be skipped if there's already a response code defined
# Dispatchers will not run if there's already a response code defined
$app->hook(before_dispatch => sub {
my $c = shift;
$c->render(text => 'Skip both dispatchers!')
$c->render(text => 'Skipped dispatchers!')
if $c->req->url->path->contains('/do_not_dispatch');
});
Expand All @@ -484,8 +484,8 @@ parsed.
This is a very powerful hook and should not be used lightly, it makes some
rather advanced features such as upload progress bars possible, just note
that it will not work for embedded applications.
(Passed the transaction and application instances)
that it will not work for embedded applications. (Passed the transaction and
application instances)
=item before_dispatch
Expand Down Expand Up @@ -519,8 +519,8 @@ hook can trigger before C<after_static_dispatch> due to its dynamic nature.
my $c = shift;
});
Useful for all kinds of postprocessing tasks.
(Passed the current controller instance)
Useful for all kinds of postprocessing tasks. (Passed the current controller
instance)
=item around_dispatch
Expand All @@ -535,9 +535,8 @@ change without warning!
});
This is a very powerful hook and should not be used lightly, consider it the
sledgehammer in your toolbox.
(Passed a closure leading to the next hook andthe current controller
instance)
sledgehammer in your toolbox. (Passed a closure leading to the next hook and
the current controller instance)
=back
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/Guides/CodingGuidelines.pod
Expand Up @@ -37,8 +37,8 @@ The web is a moving target, to stay relevant we have to stay in motion too.

Keep it simple, no magic unless absolutely necessary.

The installation process should be as fast and painless as possible.
(Less than a minute on most common hardware is a good rule of thumb)
The installation process should be as fast and painless as possible. (Less
than a minute on most common hardware is a good rule of thumb)

Code should be written with a Perl6 port in mind.

Expand Down

0 comments on commit d41f5e9

Please sign in to comment.