[Catalyst-commits] r12972 -
trunk/Catalyst-Plugin-SubRequest/lib/Catalyst/Plugin
zarquon at dev.catalyst.perl.org
zarquon at dev.catalyst.perl.org
Mon Feb 22 05:07:29 GMT 2010
Author: zarquon
Date: 2010-02-22 05:07:29 +0000 (Mon, 22 Feb 2010)
New Revision: 12972
Modified:
trunk/Catalyst-Plugin-SubRequest/lib/Catalyst/Plugin/SubRequest.pm
Log:
Added subrequest and subrequest_response names aliased to sub_request and sub_request_response methods
Modified: trunk/Catalyst-Plugin-SubRequest/lib/Catalyst/Plugin/SubRequest.pm
===================================================================
--- trunk/Catalyst-Plugin-SubRequest/lib/Catalyst/Plugin/SubRequest.pm 2010-02-22 04:16:50 UTC (rev 12971)
+++ trunk/Catalyst-Plugin-SubRequest/lib/Catalyst/Plugin/SubRequest.pm 2010-02-22 05:07:29 UTC (rev 12972)
@@ -44,6 +44,8 @@
=item subreq [path as string or hash ref], [stash as hash ref], [parameters as hash ref]
+=item subrequest
+
=item sub_request
Takes a full path to a path you'd like to dispatch to.
@@ -61,6 +63,8 @@
=item subreq_res [path as string or hash ref], [stash as hash ref], [parameters as hash ref]
+=item subrequest_response
+
=item sub_request_response
Like C<sub_request()>, but returns a full L<Catalyst::Response> object.
@@ -70,7 +74,9 @@
=cut
*subreq = \&sub_request;
+*subrequest = \&sub_request;
*subreq_res = \&sub_request_response;
+*subrequest_response = \&sub_request_response;
sub sub_request {
return shift->sub_request_response( @_ )->body ;
More information about the Catalyst-commits
mailing list