Re: [htmltmpl] Whitespace (linefeed) suppression?
Brought to you by:
samtregar
From: Mark F. <mar...@ea...> - 2004-05-11 21:09:50
|
From: "Puneet Kishor" <pk...@ei...> > IMO, logic should belong in the > script, not in the H-T markup, else it will become like php or > coldfusion. The control tags (tmpl_if, tmpl_unless, etc.) provide basic > programmatic control in the markup, but enough is enough, in my view. It seems like the problem (not a problem, but shortcoming?) is that the use of H::T tags leave residue linefeeds. The tags are removed, but not the linefeeds which were used *only* to enhance the legibility of why the tags were used. I agree with you. I don't want to see more logic tags. But, I don't think this kind of attribute regarding the whitespace used with H::T tags is that kind of logic. It's just an attribute of the existing tags regarding the whitespace that does or doesn't belong to them. > Besides, H-T is good as it does exactly what you are asking it to do... > you are putting whitespace (for legibility) and then asking the program > to strip it out (for bandwidth)... I just don't see it quite that way. I'm authoring a template and artifacts of that authoring are treated as HTML rather than template information. What you (and others) have said is that, if I don't want it to do this, then don't put whitespace in the template. My argument is that the result is an illegible template. Something's missing. I don't think post-processing the output is really the answer when I could just say "NOLF" while authoring. Mark |