expand DispatchNode comment
Matt S Trout [Wed, 2 May 2012 17:03:53 +0000 (17:03 +0000)]
lib/Web/Simple/DispatchNode.pm

index 3f37c05..a69d26c 100644 (file)
@@ -7,6 +7,8 @@ extends 'Web::Dispatch::Node';
 has _app_object => (is => 'ro', init_arg => 'app_object', required => 1);
 
 # this ensures that the dispatchers get called as methods of the app itself
+# and if the first argument is a hashref, localizes %_ to it to permit
+# use of $_{name} inside the dispatch sub
 around _curry => sub {
   my ($orig, $self) = (shift, shift);
   my $code = $self->$orig($self->_app_object, @_);