Plack::Middleware::Static::Combine - Serve multiple static files combined
version 0.01
use Plack::Builder; builder { enable 'Static::Combine', path => qr{^/javascript\.js$}, files => [ 'foo.js', 'bar.js', 'doz.js' ], root => './htdocs'; $app; };
Plack::Middleware::Static::Combine combines multiple static files, as served via Plack::App::File. Files must have same content type or HTTP 500 is returned.
URL pattern or callback, document root, and text file encoding, as passed to Plack::App::Static.
A list of files.
When this option is set to a true value, then this middleware will never return an error response. Instead, it will simply pass the request on to the application it is wrapping.
Plack::Middleware::Static, Plack::Middleware::File, Plack::Middleware::Static::Minifier.
Jakob Voß <voss@gbv.de>
This software is copyright (c) 2012 by Jakob Voß.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Plack::Middleware::Static::Combine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::Static::Combine
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::Static::Combine
For more information on module installation, please visit the detailed CPAN module installation guide.