README
1NAME
2 Catalyst::Plugin::Static - Serve static files with Catalyst
3
4SYNOPSIS
5 use Catalyst 'Static';
6
7 # let File::MMagic determine the content type
8 $c->serve_static;
9
10 # or specify explicitly if you know better
11 $c->serve_static('text/css');
12
13DESCRIPTION
14 Serve static files from config->{root}.
15
16 METHODS
17 finalize
18 This plugin overrides finalize to make sure content is removed on
19 redirect.
20
21 serve_static
22 Call this method from your action to serve requested path as a
23 static file from your root. takes an optional content_type parameter
24
25 serve_static_file <file>
26 Serve a specified static file.
27
28SEE ALSO
29 Catalyst.
30
31CAVEATS
32 This module is not as optimized for static files as a normal web server,
33 and is most useful for stand alone operation and development.
34
35AUTHOR
36 Sebastian Riedel, "sri@cpan.org" Christian Hansen <ch@ngmedia.com>
37 Marcus Ramberg <mramberg@cpan.org>
38
39THANK YOU
40 Torsten Seemann and all the others who've helped.
41
42COPYRIGHT
43 This program is free software, you can redistribute it and/or modify it
44 under the same terms as Perl itself.
45
46