Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

wording improvements

  • Loading branch information...
commit 02cd99a7f373afa92bf2ebdcebcd1b412979d950 1 parent b59c8b3
@karenetheridge karenetheridge authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/Plack/Middleware/Conditional.pm
View
8 lib/Plack/Middleware/Conditional.pm
@@ -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/ },
@@ -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.
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.