=head1 VERSION
-Version 0.05
+Version 0.07
=cut
-our $VERSION = '0.05';
+our $VERSION = '0.07';
=head1 SYNOPSIS
=cut
sub generate_subinclude {
- my ($class, $c, $path, @params) = @_;
+ my ($class, $config, $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 '<!--esi <esi:include src="' . $uri->path_query . '" /> -->';
}