Apache::AxKit::StyleProvider - base Stylesheet Provider class
Override the base Stylesheet Provider class and enable it using:
AxStyleProvider MyClass # alternatively use: # PerlSetVar AxStyleProvider MyClass
The StyleProvider class is used to read in the stylesheets at the relative URL provided by Provider::get_styles for each stylesheet used by the data source. The default StyleProvider is Provider::File, which reads from the filesystem, although obviously you can read from just about anywhere.
Should you wish to override the default StyleProvider, these are the methods you need to implement:
This method should return an open filehandle, or die if that's not possible.
This method returns a reference to a scalar containing the contents of the stylesheet, or die if that's not possible.
Return the last modification time in days before the current time.
To install AxKit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AxKit
CPAN shell
perl -MCPAN -e shell install AxKit
For more information on module installation, please visit the detailed CPAN module installation guide.