[PHPTAL] strip whitespace ?

Werner lists at mollentze.co.za
Thu Apr 12 14:54:58 CEST 2007


Hi Jonathan

I use the tidy extension in conjunction with PHPTAL, it works great 
(e.g. you can define the doctype, etc and control a lot of whitespace 
and indentation handling out of the box, e.g. number of spaces to indent).

You probably know about tidy already, I just believe that making the 
final output look pretty is maybe a job for the lib that was written 
especially for that functionality (thus the right tool for the job) ?

Kind Regards,
Werner


Jonathan Vanasco wrote:
>
> any plans to include a strip whitespace option for the templates?
>
> if not, can i request that?
>
> i do this on the server,  but i like to do it on the templates when 
> possible -- as that results in a lot less overhead.
>
> when i patched the perl Petal distribution, i added a 
> 'strip_whitespace' param ,  and just ran a whitespace strip on the 
> templates before they were run through the parser.
> it gave me a slightly faster execution and lower memory footprint than 
> having the webserver or script otherwise do the strip.
>
>
> // Jonathan Vanasco
>
> | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> - - - - - - - - - - - - - - - - - - -
> | SyndiClick.com
> | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> - - - - - - - - - - - - - - - - - - -
> |      FindMeOn.com - The cure for Multiple Web Personality Disorder
> |      Web Identity Management and 3D Social Networking
> | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> - - - - - - - - - - - - - - - - - - -
> |      RoadSound.com - Tools For Bands, Stuff For Fans
> |      Collaborative Online Management And Syndication Tools
> | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> - - - - - - - - - - - - - - - - - - -
>
>
>
> _______________________________________________
> PHPTAL mailing list
> PHPTAL at lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>




More information about the PHPTAL mailing list