Re: [htmltmpl] extra whitespace
Brought to you by:
samtregar
From: Chris B. <htm...@pa...> - 2006-02-08 23:29:47
|
Rumour has it Mark A. Fuller, on or about 08.Feb.2006 17:46, whispered: > But, as someone said back then: white space in HTML is not "display". > Viewing HTML is not "presentation." I ended up agreeing with that. Ah, I am not so sure. It so happens that the HTML spec allows you to ignore whitespace in many places, but that is just HTML. And yeah, I know the product is HTML::Template not Text::Template. In MVC terms HTML::Template produces a view that is reinterpreted as a model by the browser. > Adding a filter option will be a lot easier than trying to get H:T > to remove linefeeds *that you inserted*. I'm not so sure of that. In my view and I believe Alex as well, the end goal of H:T is to have a framework that takes an easy to read and maintain template and produces an easy to read and debug html page. I personally try to avoid tmpl_if statements for exactly this issue, but there are other devs on our team who have no real choice. Look, I don't want to spam people here, but you will have a hard time persuading me that behaviour that seems intuitive is actually wrong. In the meantime, I will keep using H:T because, as the kids say these days, it teh r0xors. Or something like that. Cheers, Chris -- Chris Beck - http://pacanukeha.blogspot.com "I don't think anybody anticipated the breach of the levees." - President Bush, September 1, 2005 |