use Carp qw/croak/;
use namespace::clean qw/croak/;
+use Scalar::Util qw/weaken/;
=head1 NAME
=head1 VERSION
-Version 0.03
+Version 0.05
=cut
-our $VERSION = '0.03';
+our $VERSION = '0.06';
=head1 SYNOPSIS
has 'subinclude_plugin' => (
is => 'rw',
- isa => 'ClassName'
+ isa => 'Str'
);
around 'new' => sub {
around 'render' => sub {
my $next = shift;
my ($self, $c, @args) = @_;
-
+
+ weaken $c;
+
$c->stash->{subinclude} = sub { $self->_subinclude( $c, @_ ) };
$c->stash->{subinclude_using} = sub { $self->_subinclude_using( $c, @_ ) };