attributes->import( __PACKAGE__, \&namespace, 'lvalue' );
-sub depth { scalar @{shift->stack||[]}; }
-#sub namespace { my $a = shift->stack->[-1]; ($a ? $a->namespace : ''); }
+sub depth { scalar @{ shift->stack || [] }; }
# Laziness++
*comp = \&component;
$action = "-> $action" if $callsub =~ /forward$/;
}
- push(@{$c->stack}, $code);
+ push( @{ $c->stack }, $code );
eval {
if ( $c->debug )
{
$c->state( &$code( $class, $c, @{ $c->req->args } ) || 0 );
}
};
- pop(@{$c->stack});
+ pop( @{ $c->stack } );
if ( my $error = $@ ) {
}
}
+=item $c->stack
+
+Contains the stack.
+
=item $c->write( $data )
Writes $data to the output stream. When using this method directly, you will