| CatalystX-Features documentation | Contained in the CatalystX-Features distribution. |
CatalystX::Features::Lib - Push your /lib into @INC
version 0.20
use Catalyst qw/ CatalystX::Features CatalystX::Features::Lib /;
Pushes your feature /lib in @INC.
Rodrigo de Oliveira (rodrigolive), C<rodrigolive@gmail.com>
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
| CatalystX-Features documentation | Contained in the CatalystX-Features distribution. |
package CatalystX::Features::Lib; $CatalystX::Features::Lib::VERSION = '0.20'; use Moose; sub setup { my $c = shift; $c->next::method(@_); my $appname = ref $c || $c; foreach my $feature ( $c->features->list ) { # change INC push @INC, $feature->lib; } }
1;