Alexander Hartmaier > Catalyst-Plugin-Static-Simple-0.31 >
Catalyst::Plugin::Static::Simple    Annotate this POD   New  5
Open  3 View/Report Bugs Module Version: 0.31   Source 
package MyApp;     use Catalyst qw/ Static::Simple /;     #
that's it; static content is automatically served by Catalyst
# from the application's root directory, though you can
configure     # things or bypass Catalyst entirely in a
production environment     # (i.e. /images/foo.png)    This
plugin detects static files by looking at the file extension in
the URL (such as .css or .png or .js). The plugin uses the
lightweight MIME::Types module to map file extensions to IANA-
registered MIME types, and will serve your static files with the
correct MIME type directly to the browser, without being
processed through Catalyst.   If the plugin can not find the
file, the request is dispatched to your application instead.
This means you are responsible for generating a 404 error if
your applicaton can not process the request: