X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-View-Component-SubInclude.git;a=blobdiff_plain;f=lib%2FCatalyst%2FView%2FComponent%2FSubInclude%2FESI.pm;h=6d763e1acb9d3564ca5d9a93b80bd0bb94894fbb;hp=1c98d625c39a3f11d314488e94b1298c8bfb06e6;hb=aea6a2daf91fe3f71f5018d78fdeeff3da6833c8;hpb=e88af2835e002b378e700d70a81912b493b40b1f diff --git a/lib/Catalyst/View/Component/SubInclude/ESI.pm b/lib/Catalyst/View/Component/SubInclude/ESI.pm index 1c98d62..6d763e1 100644 --- a/lib/Catalyst/View/Component/SubInclude/ESI.pm +++ b/lib/Catalyst/View/Component/SubInclude/ESI.pm @@ -53,10 +53,14 @@ common interface for plugins. =cut sub generate_subinclude { - my $class = shift; - my $c = shift; - my $url = $c->uri_for( @_ ); - return ''; + my ($class, $c, $path, @params) = @_; + + my $dispatcher = $c->dispatcher; + my ($action, $args) = $dispatcher->_invoke_as_path( $c, $path, @params ); + + my $uri = $c->uri_for( $action, $args ); + + return ''; } =head1 SEE ALSO