NAME
Apache::Lint - Apache wrapper around HTML::Lint
SYNOPSIS
Apache::Lint passes all your mod_perl-generated code through the HTML::Lint module, and spits out the resulting errors into.
<Files *.pl>
SetHandler perl-script
PerlHandler Apache::RegistryFilter Apache::Lint
Options +ExecCGI
PerlSetVar Filter On
</Files>
XXX Put in sample code into httpd.conf
VERSION
Version 0.01
TODO
Almost everything is a TODO. This version barely runs at all, but I want to get it out there.
Fix it so the HTML::Lint::Errors get loaded properly.
my $nerrors = scalar $lint->errors();
for my $error ( $lint->errors() ) {
$log->info( $error->as_string() );
}
$log->info( "Done linting", localtime );
$r->headers_out->set( "Lint-status" => "$nerrors errors" );
$r->send_http_header('text/html');
my $phase = "gronk";
$r->headers_out->set( "Lint-$phase" => $phase );
print $html;
return OK;
}
SEE ALSO
TODO
Make it work
LICENSE
This code may be distributed under the same terms as Perl itself.
Please note that these modules are not products of or supported by the employers of the various contributors to the code.
AUTHOR
Andy Lester, <andy@petdance.com>
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 132:
=pod directives shouldn't be over one line long! Ignoring all 6 lines of content