Plack::Middleware::Debug::W3CValidate - Validate your Response Content
use Plack::Builder;
my $app = ...; ## Build your Plack App
builder {
enable 'Debug', panels =>['W3CValidate'];
$app;
};
Adds a debug panel that runs your response body through the W3C validator and returns a list of errors.
This debug panel defines the following options.
Takes the url of the W3C validator. Defaults to the common validator, but if you plan to pound this it would be polite to setup your own and point to that instead. Please see WebService::Validator::HTML::W3C for more.
Since this panel needs to read and submit the response body to a POST service it will definitely increase the time it takes to load the page.
John Napiorkowski, <jjnapiork@cpan.org>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.