Sam,

Love that HTML::Template! Anyway, I have a sort of nitpicky issue.

I've found that HTML::Template keeps the "\n"(newline, if that character screws up 
your mail reader) in it's template parsing.

What that means is if you have a template like:

<TMPL_IF NAME=L3_CAT>
     <TMPL_LOOP NAME=L3_CAT>
          <tr><td><TMPL_VAR NAME=L3_CAT_NAME></td></tr>
          <TMPL_IF NAME=l3_DOCS>
               <TMPL_LOOP NAME=l3_DOCS>
               <tr><td>&nbsp;</td><td>&nbsp;</td><td colspan=2> <TMPL_VAR 
NAME=TITLE></td></tr>
               </TMPL_LOOP>
           </TMPL_IF>
     </TMPL_LOOP>
</TMPL_IF>

after parsing it will be two newlines, a table row, two newlines, a table row,followed 
by four newlines.

Is there anyway to get rid of those empty newlines when they are from lines that are 
strictly HTML::Template directives? Especially when you get into large loops, you get 
a lot of useless space in your HTML. This would also offer a little bit of bandwidth 
savings.

I could, of course, get rid of this before outputting the page, but thought it may 
make sense to do in the module itself.

Thanks!

-DJCP




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to