Catalyst::Plugin::Static

Catalyst::Plugin::Static allows to serve static files with Catalyst.
Download

Catalyst::Plugin::Static Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Sebastian Riedel, Christian Hansen and Marcus Ramberg
  • Publisher web site:
  • http://search.cpan.org/~mramberg/

Catalyst::Plugin::Static Tags


Catalyst::Plugin::Static Description

Catalyst::Plugin::Static allows to serve static files with Catalyst. Catalyst::Plugin::Static allows to serve static files with Catalyst.SYNOPSIS use Catalyst 'Static'; # let File::MMagic determine the content type $c->serve_static; # or specify explicitly if you know better $c->serve_static('text/css');Serve static files from config->{root}. Note that for most purposes, you'll probably want to use Catalyst::Plugin::Static::Simple rather than this one.METHODSfinalizeThis plugin overrides finalize to make sure content is removed on redirect.serve_staticCall this method from your action to serve requested path as a static file from your root. takes an optional content_type parameterserve_static_file < file >Serve a specified static file. Requirements: · Perl


Catalyst::Plugin::Static Related Software