From: Alexander Hartmaier Date: Mon, 11 Jun 2012 15:58:45 +0000 (+0000) Subject: Updated docs to reflect config key change from 'static' to 'Plugin::Static::Simple' X-Git-Tag: v0.31~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-Static-Simple.git;a=commitdiff_plain;h=fa25e42244238fc2159263a05d7cffe9e0ac9557 Updated docs to reflect config key change from 'static' to 'Plugin::Static::Simple' --- diff --git a/Changes b/Changes index 81a35d7..b6f5945 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for Perl extension Catalyst::Plugin::Static::Simple + - Updated docs to reflect config key change from 'static' to + 'Plugin::Static::Simple' + 0.30 2012-05-04 17:05:00 - Add Cache-Control:public header - Optionally provide Expires header diff --git a/lib/Catalyst/Plugin/Static/Simple.pm b/lib/Catalyst/Plugin/Static/Simple.pm index 1611f93..34bf111 100644 --- a/lib/Catalyst/Plugin/Static/Simple.pm +++ b/lib/Catalyst/Plugin/Static/Simple.pm @@ -345,7 +345,7 @@ Logging of static files is turned off by default. =head1 ADVANCED CONFIGURATION Configuration is completely optional and is specified within -Cconfig-E{static}>. If you use any of these options, +Cconfig-E{Plugin::Static::Simple}>. If you use any of these options, this module will probably feel less "simple" to you! =head2 Enabling request logging @@ -354,7 +354,7 @@ Since Catalyst 5.50, logging of static requests is turned off by default; static requests tend to clutter the log output and rarely reveal anything useful. However, if you want to enable logging of static requests, you can do so by setting -Cconfig-E{static}-E{logging}> to 1. +Cconfig-E{Plugin::Static::Simple}-E{logging}> to 1. =head2 Forcing directories into static mode @@ -363,7 +363,7 @@ that should always be served in static mode. Regular expressions may be specified using C. MyApp->config( - static => { + 'Plugin::Static::Simple' => { dirs => [ 'static', qr/^(images|css)/, @@ -380,7 +380,7 @@ added to the search path when you specify an C. You should use Cconfig-E{root}> to add it. MyApp->config( - static => { + 'Plugin::Static::Simple' => { include_path => [ '/path/to/overlay', \&incpath_generator, @@ -424,7 +424,7 @@ If you wish to define your own extensions to ignore, use the C option: MyApp->config( - static => { + 'Plugin::Static::Simple' => { ignore_extensions => [ qw/html asp php/ ], }, ); @@ -437,7 +437,7 @@ directory paths to ignore. If using C, the path will be checked against every included path. MyApp->config( - static => { + 'Plugin::Static::Simple' => { ignore_dirs => [ qw/tmpl css/ ], }, ); @@ -458,7 +458,7 @@ To override or add to the default MIME types set by the L module, you may enter your own extension to MIME type mapping. MyApp->config( - static => { + 'Plugin::Static::Simple' => { mime_types => { jpg => 'image/jpg', png => 'image/png', @@ -478,7 +478,7 @@ So a value of zero really means "don't cache at all", and any higher values will keep the file around for that long. MyApp->config( - static => { + 'Plugin::Static::Simple' => { expires => 3600, # Caching allowed for one hour. }, ); @@ -495,7 +495,7 @@ Enable additional debugging information printed in the Catalyst log. This is automatically enabled when running Catalyst in -Debug mode. MyApp->config( - static => { + 'Plugin::Static::Simple' => { debug => 1, }, );