On Dec 15, 2009, at 8:13 AM, kbochert wrote:

> Jonathon wrote:
>> 2x seems like an awful lot, since a newline is only one byte. Are you sure?
> 
> The  output typically has multiple leading spaces on those blank
> lines, presumably driven by the indenting of the original html.

I finally noticed the attachments. It does seem like a pathological case, 
though (v. short lines and lots of whitespace).


> 
> DenesL wrote:
>> Do you want you view or your final output to be legible and
>> aesthetically pleasing according to some subjective human standard?.
> 
> Absolutely!
> For instance,  I'm currently looking for a designer to style my site.
> The first thing I do is surf to their home page and look at its source
> code!
> If I'm evangelizing web2py to colleagues, clean output helps. (makes
> me prouder of my work, at least)

I agree that good-looking output is a plus. It doesn't seem unreasonable to ask 
developers to understand how web2py templates work, and design accordingly. 
It's not a mystery where the white space is coming from, and the developer has 
complete control.

One problem, though, is that there *is* a conflict between good-looking (and 
readable, and maintainable) template source, and the appearance of the output. 
We use (and should use) white space liberally to make our code readable. If 
that same white space leaks into the output, it generally looks pretty random.

Those of us that write straight html are doing both at the same time. Our html 
needs to be maintainable *as source*. A different standard needs to be applied 
to generated html, since it won't be (directly) maintained.

What I like about using a filter (slimmer or the like) is that it leaves you 
free to write readable source, and end up with decent output.

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to