NAME

PSGI::Hector::Middleware - Application middleware

SYNOPSIS

PSGI::Hector::Middleware->wrap($app);

DESCRIPTION

Wraps the application in additional middleware.

METHODS

wrap()

PSGI::Hector::Middleware->wrap($app)

Adds the following middleware to the application:

Serving static files from "images", "js", "style" which are located in the "htdocs" directory. These will be minified, cached and compressed in a production environment.

Non static files will only be compressed.

Notes

Author

MacGyveR <dumb@cpan.org>

Development questions, bug reports, and patches are welcome to the above address

See Also

Plack::Middleware::Static::Minifier Plack::Middleware::Static Plack::Middleware::Deflater

Copyright

Copyright (c) 2017 MacGyveR. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.