Gantry::Plugins::Static - Static file method


Gantry documentation  | view source Contained in the Gantry distribution.

Index


NAME

Top

Gantry::Plugins::Static - Static file method

SYNOPSIS

Top

    <Perl>
        # ...
        use MyApp qw{ -Engine=CGI -TemplateEngine=TT Static };
    </Perl>

    or

    use Gantry::Plugins::Static;




DESCRIPTION

Top

This plugins mixes in a do_static method that serves static files from disk.

This plugin grabs everything after "/static" and walks the applications root directories and delivers the file with the correct mime type.

   root => html:html/templates:../root

   /static/dir1/dir2/somefile.ext

will crawl html, html/templates, and ../root in the order that the appear in the list.

It will also search the directory where you installed the default Gantry templates. Gantry::Init->base_root();

METHODS

Top

do_static

this method serves a static file from disk.

SEE ALSO

Top

    Gantry
    Gantry::Plugins

AUTHOR

Top

Timotheus Keefer <tkeefer@gmail.com>

COPYRIGHT AND LICENSE

Top


Gantry documentation  | view source Contained in the Gantry distribution.