NAME

Mojolicious::Command::static - Quickly serve static files

SYNOPSIS

  Usage: APPLICATION static [OPTIONS] dir1 dir2 ... file1 file2 ...

    ./myapp.pl static

  Options:
    -h, --help          Show this summary of available options

DESCRIPTION

Mojolicious::Command::static quickly serves static files

Serves files from the current directory as well as those specified on the command line. Numeric shortcuts (e.g. /1, /2, etc) are created for files that are specified on the command line.

ATTRIBUTES

Mojolicious::Command::static inherits all attributes from Mojolicious::Command and implements the following new ones.

description

  my $description = $static->description;
  $static         = $static->description('Foo');

Short description of this command, used for the command list.

usage

  my $usage = $static->usage;
  $routes   = $static->usage('Foo');

Usage information for this command, used for the help screen.

METHODS

Mojolicious::Command::static inherits all methods from Mojolicious::Command and implements the following new ones.

run

  $static->run(@ARGV);

Run this command.

SEE ALSO

Mojolicious, Mojolicious::Guides, http://mojolicio.us.