Mojolicious::Static man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

Mojolicious::Static(3)User Contributed Perl DocumentatioMojolicious::Static(3)

NAME
       Mojolicious::Static - Serve Static Files

SYNOPSIS
	 use Mojolicious::Static;

DESCRIPTION
       Mojolicious::Static is a dispatcher for static files with "Range" and
       "If-Modified-Since" support.

ATTRIBUTES
       Mojolicious::Static implements the following attributes.

   "default_static_class"
	 my $class = $static->default_static_class;
	 $static   = $static->default_static_class('main');

       The dispatcher will use this class to look for files in the "DATA"
       section.

   "root"
	 my $root = $static->root;
	 $static  = $static->root('/foo/bar/files');

       Directory to serve static files from.

METHODS
       Mojolicious::Static inherits all methods from Mojo::Base and implements
       the following ones.

   "dispatch"
	 my $success = $static->dispatch($c);

       Dispatch a Mojolicious::Controller object.

   "serve"
	 my $success = $static->serve($c, 'foo/bar.html');

       Serve a specific file.

SEE ALSO
       Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.

perl v5.14.1			  2011-09-11		Mojolicious::Static(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net