[PHPTAL] strip whitespace ?

Jonathan Vanasco phptal at 2xlp.com
Fri Apr 6 01:47:07 CEST 2007


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
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -





More information about the PHPTAL mailing list