X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FView%2FComponent%2FSubInclude%2FESI.pm;h=4ce77993f43dadec8bc3fe6f3e2b25260aa9afe0;hb=edc887a1b81e9b8104410f0f00dfab9d3ee5fc9a;hp=2393c2c9c683c10377a652dcdce843541b1afc45;hpb=84616d2a8aa249873c1b4b5524234e30956eee9e;p=catagits%2FCatalyst-View-Component-SubInclude.git diff --git a/lib/Catalyst/View/Component/SubInclude/ESI.pm b/lib/Catalyst/View/Component/SubInclude/ESI.pm index 2393c2c..4ce7799 100644 --- a/lib/Catalyst/View/Component/SubInclude/ESI.pm +++ b/lib/Catalyst/View/Component/SubInclude/ESI.pm @@ -8,11 +8,11 @@ Catalyst::View::Component::SubInclude::ESI - Edge Side Includes (ESI) plugin for =head1 VERSION -Version 0.04 +Version 0.07 =cut -our $VERSION = '0.04'; +our $VERSION = '0.07'; =head1 SYNOPSIS @@ -57,12 +57,7 @@ common interface for plugins. sub generate_subinclude { my ($class, $c, $path, @params) = @_; - my $args = ref $params[0] eq 'ARRAY' ? shift @params : []; - - my $dispatcher = $c->dispatcher; - my ($action) = $dispatcher->_invoke_as_path( $c, $path, $args ); - - my $uri = $c->uri_for( $action, $args, @params ); + my $uri = $c->uri_for_action( $path, @params ); return ''; }