Catalyst::Plugin::Static::Simple::ByClass - locate static content in @INC
use Catalyst qw( Static::Simple::ByClass ); __PACKAGE__->config( 'Plugin::Static::Simple::ByClass' => { classes => [ qw( MyClass::Foo ) ] } );
Catalyst::Plugin::Static::Simple::ByClass is a subclass of Catalyst::Plugin::Static::Simple. It extends the base class to alter the include_path config to include @INC paths for classes. The idea is that you can distribute static files (.js and .css for example) with applications, and those files can be served during development directly from the installed @INC location.
Only new or overridden method are documented here.
Calls next::method and then checks the classes config option for a list of class names to require and add to the include_path.
Peter Karman, <karman@cpan.org>
<karman@cpan.org>
Please report any bugs or feature requests to bug-catalyst-plugin-static-simple-byclass@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-catalyst-plugin-static-simple-byclass@rt.cpan.org
The Minnesota Supercomputing Institute http://www.msi.umn.edu/ sponsored the development of this software.
http://www.msi.umn.edu/
Copyright 2009 by the Regents of the University of Minnesota.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Catalyst::Plugin::Static::Simple::ByClass, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::Static::Simple::ByClass
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::Static::Simple::ByClass
For more information on module installation, please visit the detailed CPAN module installation guide.