Catalyst::Plugin::Static - Serve static files with Catalyst |
Catalyst::Plugin::Static - 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}. Note that for most purposes, you'll probably want to use the Catalyst::Plugin::Static::Simple manpage rather than this one.
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>
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.
Catalyst::Plugin::Static - Serve static files with Catalyst |