| CatalystX-Features documentation | Contained in the CatalystX-Features distribution. |
CatalystX::Features::Plugin::Static::Simple - Makes C::P::Static::Simple know about features
version 0.20
Rodrigo de Oliveira (rodrigolive), C<rodrigolive@gmail.com>
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
| CatalystX-Features documentation | Contained in the CatalystX-Features distribution. |
package CatalystX::Features::Plugin::Static::Simple; $CatalystX::Features::Plugin::Static::Simple::VERSION = '0.20'; use Moose::Role; use Carp; with 'Catalyst::Plugin::Static::Simple'; use namespace::autoclean; after setup_finalize => sub { my $c = shift; my $config = $c->config; foreach my $feature ( $c->features->list ) { # change static paths push( @{ $config->{static}->{include_path} }, $feature->root ); } return $c; };
1;