Skip to content

ziguzagu/Plack-Middleware-Watermark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME
    Plack::Middleware::Watermark - Add watermark to response body

SYNOPSIS
      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 -->

DESCRIPTION
    The watermark middleware offers appending some string to response body
    as comment.

OPTIONS
  comment
    Specify comment string or subroutine returning some string.

      builder {
          enable 'Watermark', comment => sub { 'Generated by ' . Sys::Hostname::hostname };
          $app;
      }

AUTHOR
    Hiroshi Sakai <ziguzagu@cpan.org>

COPYRIGHT
    Copyright (C) 2010 Six Apart, Ltd. All rights reserved.

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

About

Add watermark to response body

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages