On Tue, May 11, 2004 at 01:55:38PM -0700, Mark Fuller wrote:
> From: "petersm" <petersm@...>
> > Why should this matter (besides the bandwidth issue)? HTML ignores
> > and other than looking at the output of a template every now and then to
> > sure that it is what you want, why do you care what the output looks like?
> Why take bandwidth off the table? I gave an example (of a table) where the
> whitespace could be significant. And, as has been mentioned, there are
> occasions when the unintended whitespace *does* affect the final rendering.
> In one prior discussion someone gave an example of the <image> element.
> Keith just gave an example concerning email. (It may not have come out on
> the list by the time you replied to me).
For those curious about one (fairly random) set of numbers, I found a
15-30% reduction in template size by running htmlclean (from
HTML::Clean) on my templates before installing them, with an average
somewhere around 25%. So, yeah, bandwidth is somewhat relevant. OTOH,
the way I got those numbers defines one solution to the bandwidth
> The question of why I would care what H::T output looks like is subjective.
> Someone could suggest that I put all the H::T elements on one line and ask
> "why do you care what the template looks like?" Authoring is subjective. I
> just don't think I should get something out of H::T that I didn't intend. I
> don't think the tags should influence the resulting whitespace.
Personally, I would like this feature, because we did briefly mess
around with trying to use HTML::Template for templating Ascii text
(email report generation) and found it overwhelmingly painful as it
stands. We simply deferred the text-only output feature and have had
no complaints asking for it so far.
However, I didn't complain to this list at that time, because I
figured that after all, the package is called *HTML* Template, and
whitespace is defined as irrelevant to HTML. I decided back then that
if it turned out we really needed a system that would work equally well
for text and HTML, I'd switch to Template Toolkit or something like
(Though having seen Karen's formatting suggestion, I think I'd try
that first. Neatly done!)
Clifton Royston -- cliftonr@...
Tiki Technologies Lead Programmer/Software Architect
Did you ever fly a kite in bed? Did you ever walk with ten cats on your head?
Did you ever milk this kind of cow? Well we can do it. We know how.
If you never did, you should. These things are fun, and fun is good.
-- Dr. Seuss