The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Apache::AxKit::StyleProvider - base Stylesheet Provider class

SYNOPSIS

Override the base Stylesheet Provider class and enable it using:

        AxStyleProvider MyClass
        
        # alternatively use:
        # PerlSetVar AxStyleProvider MyClass

DESCRIPTION

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:

get_fh()

This method should return an open filehandle, or die if that's not possible.

get_strref()

This method returns a reference to a scalar containing the contents of the stylesheet, or die if that's not possible.

mtime()

Return the last modification time in days before the current time.