• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

lib/Catalyst/Plugin/H18-Oct-2009-14355

t/H18-Oct-2009-8961

ChangesH A D18-Oct-20091.3 KiB3331

MANIFESTH A D18-Oct-2009267 1312

META.ymlH A D18-Oct-2009607 2625

Makefile.PLH A D18-Oct-2009352 1412

READMEH A D30-Jul-20091.1 KiB4632

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