Plack::Middleware::Watermark - Add watermark to response body
use Plack::Builder; my $app = sub { [ 200, [ 'Content-Type' => 'text/html' ], [ "Hello World\n" ] ] }; builder { enable 'Watermark', comment => 'generated on my server'; $app; } # Hello World # <!-- generated on my server -->
The watermark middleware offers appending some string to response body as comment.
Specify comment string or subroutine returning some string.
builder { enable 'Watermark', comment => sub { 'Generated by ' . Sys::Hostname::hostname }; $app; }
Hiroshi Sakai <ziguzagu@cpan.org>
Copyright (C) 2010 Six Apart, Ltd. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Plack::Middleware::Watermark, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::Watermark
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::Watermark
For more information on module installation, please visit the detailed CPAN module installation guide.