2 Catalyst::Plugin::SubRequest - Make subrequests to actions in Catalyst
5 use Catalyst 'SubRequest';
7 $c->subreq('/test/foo/bar', { template => 'magic.tt' });
9 $c->subreq( { path => '/test/foo/bar',
11 { template => 'magic.tt' });
14 Make subrequests to actions in Catalyst. Uses the catalyst dispatcher,
15 so it will work like an external url call.
18 subreq [path as string or hash ref], [stash as hash ref], [parameters as
21 Takes a full path to a path you'd like to dispatch to. If the path
22 is passed as a hash ref then it can include body, action, match and
23 path. Any additional parameters are put into the stash.
29 Marcus Ramberg, "mramberg@cpan.org"
32 SRI, for writing the awesome Catalyst framework
35 Copyright (c) 2005 - 2008 the Catalyst::Plugin::SubRequest "AUTHOR" as
39 This program is free software, you can redistribute it and/or modify it
40 under the same terms as Perl itself.