CGI::Pretty - module to produce nicely formatted HTML code
CGI::Pretty is a module that derives from CGI. It's sole
function is to allow users of CGI to output nicely formatted
HTML code. When using the CGI module, the following code: print
table( TR( td( "foo" ) ) ); produces the following output:
<TABLE><TR><TD>foo</TD></TR></TABLE> If a user were to create a
table consisting of many rows and many columns, the resultant
HTML code would be quite difficult to read since it has no
carriage returns or indentation. CGI::Pretty fixes this problem.
What it does is add a carriage return and indentation to the
HTML code so that one can easily read it. - print table( TR( td(
"foo" ) ) ); now produces the following output: <TABLE> <TR>
<TD>foo</TD> </TR> </TABLE> CGI::Pretty is far slower than using
CGI.pm directly. A benchmark showed that it could be about 10
times slower. Adding newlines and spaces may alter the rendered
appearance of HTML. Also, the extra newlines and spaces also
make the file size larger, making t