CGI-Application-Plugin-HtmlTidy version 1.01
============================================
NAME
CGI::Application::Plugin::HtmlTidy - Add HTML::Tidy support to
CGI::Application
SYNOPSIS
use CGI::Application::Plugin::HtmlTidy;
sub cgiapp_postrun {
my ($self, $contentref) = @_;
# your post-process code here
$self->htmltidy_clean($contentref);
}
# generate a validation report
use CGI::Application::Plugin::DevPopup;
use CGI::Application::Plugin::HtmlTidy;
CHANGES
This release integrates with CGI::Application::Plugin::DevPopup. If that
plugin is active, this one will add an HTML validation report. As a
consequence, htmltidy_validate() is no longer exported, and should not
be called directly.
DESCRIPTION
This plugin is a wrapper around HTML::Tidy. It exports two methods that
allow you to either validate or clean up the output of your cgiapp
application. They should be called at the end of your postrun method.
The htmltidy_validate method is a helpful addition during development.
It generates a detailed report specifying the issues with your html.
The htmltidy_clean modifies your output to conform to the W3C standards.
It has been in use for quite some time on a largish site (generating
over 3,000,000 pages per day) and has proven to be quite stable and fast.
Every single page view was valid html, which makes many browsers happy
:-)
INSTALLATION
To install this module type the following:
perl Makefile.PL
make
make test
make install
DEPENDENCIES
This module requires these other modules and libraries:
CGI::Application, HTML::Tidy
COPYRIGHT AND LICENCE
Copyright (C) 2005 by Rhesa Rozendaal
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.8.2 or,
at your option, any later version of Perl 5 you may have available.