Skip to content

Commit

Permalink
wording improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
karenetheridge committed Apr 5, 2012
1 parent b59c8b3 commit 02cd99a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Plack/Middleware/Conditional.pm
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Plack::Middleware::Conditional - Conditional wrapper for Plack middleware
$app;
};
# Or more raw version of it
# or using the OO interface:
$app = Plack::Middleware::Conditional->wrap(
$app,
condition => sub { my $env = shift; $env->{HTTP_USER_AGENT} =~ /WebKit/ },
Expand All @@ -46,7 +46,7 @@ Plack::Middleware::Conditional - Conditional wrapper for Plack middleware
=head1 DESCRIPTION
Plack::Middleware::Conditional is a piece of meta-middleware, to run a
specific middleware component under the runtime condition. The goal of
specific middleware component under runtime conditions. The goal of
this middleware is to avoid baking runtime configuration options in
individual middleware components, and rather share them as another
middleware component.
Expand All @@ -72,8 +72,8 @@ the explanation and might not exist.
};
Note that in the last example I<MobileDetector> should come first
because the conditional check runs in I<pre-run> condition, which is
from outer to inner and that is from the top to the bottom in the
because the conditional check runs in I<pre-run> conditions, which is
from outer to inner: that is, from the top to the bottom in the
Builder DSL code.
=head1 AUTHOR
Expand Down

0 comments on commit 02cd99a

Please sign in to comment.