On Nov 16, 2007, at 7:27 PM, Jonathan Vanasco wrote:


On Nov 16, 2007, at 6:13 PM, Fred Moyer wrote:

I'm pretty sure you can use Apache::Clean as an output filter to do this.

http://search.cpan.org/~geoff/Apache-Clean-2.00_7/

I believe the OP wanted the exact opposite

I *hope* this is for a dev-only use - as it would be really silly to tidy up stuff to clients.

Indeed, dev use is my sole intention. Although it could be useful on very high volume sites were page weight is critical.


Personally, I use stuff like Clean on my templates when I compile them on startup (clean 1x, server 100x)

For the OP's needs, a pure-perl solution would be:

        http://www.perlmonks.org/? =308488

Possible I could adapt this to mod_perl2.  Thanks!


        http://thraxil.org/users/anders/posts/2003/11/21/Apache--Tidy/

However you'd be better off (I think) with a c-lib on apache that uses the TidyLib directly
        http://mod-tidy.sourceforge.net/

mod_tidy looks like a dead project. I tried to install it last week against apache 2.2.6 on macpro and it barfed on server start even though it compiles clean:

httpd: Syntax error on line 117 of /private/etc/apache2/httpd.conf: Cannot load /usr/libexec/apache2/mod_tidy.so into server: dlopen(/usr/ libexec/apache2/mod_tidy.so, 10): no suitable image found. Did find:\n \t/usr/libexec/apache2/mod_tidy.so: mach-o, but wrong architecture



the suse package gives a good description:
        
http://www.novell.com/products/linuxpackages/suselinux/apache2-mod_tidy.html
mod_tidy is a module for Apache that works as a filter that hooks
itself to HTML output. mod_tidy feeds the HTML output to TidyLib
(http://tidy.sourceforge.net/), which validates the HTML output. If
TidyLib finds an error, the client receives a HTML page with a list of
all found errors. If TidyLib does not complain, you get your HTML data
as without mod_tidy.
To load the module into Apache, add it to APACHE_MODULES in
/etc/sysconfig/apache2 ('a2enmod mod_tidy'). To learn about the
configuration, refer to
/usr/share/doc/packages/apache2-mod_tidy/README.




// Jonathan Vanasco

w. http://findmeon.com/user/jvanasco
e. [EMAIL PROTECTED]

|   Founder/CEO - FindMeOn, Inc.
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|      FindMeOn.com - The cure for Multiple Web Personality Disorder
|      Privacy Minded Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


|   Founder - RoadSound.com
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|      RoadSound.com - Tools For Bands, Stuff For Fans
|      Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -





Reply via email to