CatalystX::Features::Role::Feature - Role for implementing a single feature.
version 0.16
This role is an interface. No code here.
Needed by the constructor. Receives a full path to the feature, i.e.
/home/myapp/features/my.simple.feature_1.0.0
Needed by the constructor. Passed the instance of the controller. Should have a type of CatalystX::Features::Role::Backend.
has 'backend' => ( is=>'ro', isa=>'CatalystX::Features::Role::Backend', required=>1 );
The last folder in the feature path, say my.feature_1.0. It's used as a unique identifier for this feature.
my.feature_1.0
The name of the feature, say my.simple.feature. This is also a unique identifier application wide. There should not exist 2 or more features with the same name loaded at any given time.
my.simple.feature
A version token of any format.
A version long integer that can be compared easily.
Returns the full path to the /root dir for a given feature. Used by many View modifiers.
/root
View
Returns the full path of the /lib dir for a given feature. Used by @INC modifiers or any plugins.
/lib
@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.
To install CatalystX::Features, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CatalystX::Features
CPAN shell
perl -MCPAN -e shell install CatalystX::Features
For more information on module installation, please visit the detailed CPAN module installation guide.