> > I don't think you're saying this, but doesn't your decision ultimately mean
> > legibility of the template is outside the scope of H::T? On the one hand
> > you're saying H::T does exactly what you tell it to do. On the other hand,
> > if you write it legibly but don't like all the artifacts in your output,
> > then don't write it legibly. Is that reasonable?
> 
> That sounds ok, but I would add that if you want to write your
> templates in one style and see output in another then you are
> perfectly free to do so.  Just write some code that takes the HTML
> from output() and modifies it to your specifications.  Or,
> alternately, write a filter which you can pass to
> HTML::Template->new() to fixup the template before it's seen by
> HTML::Template.

I'd second this design - it would be relatively easy to make a filter which stripped 
out whitespace between TMPL tags and normal text, based on some sort of rules.  That 
way, your templates look good, and your html output looks good.

For what its worth: our company strips all irrelevant whitespace, as well as html and 
javascript comments from our HTML based reports -> this usually results in a 30% 
reduction in the resulting HTML; we then use mod_gzip for a further bandwidth 
reduction.

Mathew

PS. if a filter is written to accomodate this requirement, please forward it to me so 
that I can add it to the other filters in the H::T:Filters package.


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to