Catalyst::Plugin::Static - DEPRECATED - Serve static files with Catalyst
use Catalyst 'Static'; # let File::MMagic determine the content type $c->serve_static; # or specify explicitly if you know better $c->serve_static('text/css');
Serve static files from config->{root}. You probably want to use use Catalyst::Plugin::Static::Simple rather than this module.
This plugin overrides finalize to make sure content is removed on redirect.
Call this method from your action to serve requested path as a static file from your root. takes an optional content_type parameter
Serve a specified static file.
Catalyst.
This module is not as optimized for static files as a normal web server, and is most useful for stand alone operation and development.
Sebastian Riedel, sri@cpan.org Christian Hansen <ch@ngmedia.com> Marcus Ramberg <mramberg@cpan.org>
sri@cpan.org
Torsten Seemann and all the others who've helped.
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, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::Static
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::Static
For more information on module installation, please visit the detailed CPAN module installation guide.