Re: [htmltmpl] Whitespace (linefeed) suppression?
Brought to you by:
samtregar
From: David H. <da...@ho...> - 2004-05-11 20:13:04
|
On 11 May 2004, at 20:47, Mark Fuller wrote: > If I have something like this for readability in the template: > > ============================== > <TMPL_IF NAME="ERRMSG"> > > <p>Error: <TMPL_VAR NAME=ERRMSG> > > <TMPL_IF NAME="EMAIL_AVAILABLE"> > > (Forgot your password? <a href="">Reset and email it to > yourself</a>.) > > </TMPL_IF> > > </p> > > </TMPL_IF> > ================================ > > The resulting HTML has a lot of newlines. > There are mod_perl and apache filters for doing this. mod_gzip makes it particularly academic if you're prepared to trade a little CPU for a *lot* of bandwidth. Stuff in the right place. -- Dave Hodgkinson CTO, Rockit Factory Ltd. http://www.rockitfactory.com/ Web sites for rock bands |