During previous discussions on this the suggestion was used to use tidy in some way. Obviously in HTML the whitespace is fairly harmless, but for an email template or using H::T for something other then HTML the whitespace makes a big difference.
So I throw my vote in for a flag to include or not include the LF with certain H::T tags.
On Tue, 2004-05-11 at 15:47, Mark Fuller wrote:
If I have something like this for readability in the template:
============================== <TMPL_IF NAME="ERRMSG">
<p>Error: <TMPL_VAR NAME=ERRMSG>
<TMPL_IF NAME="EMAIL_AVAILABLE">
(Forgot your password? <a href="">Reset and email it to yourself</a>.)
</TMPL_IF>
</p>
</TMPL_IF> ================================
since we are voting, I would say 'no'. IMO, logic should belong in the script, not in the H-T markup, else it will become like php or coldfusion. The control tags (tmpl_if, tmpl_unless, etc.) provide basic programmatic control in the markup, but enough is enough, in my view. More often than not it is quite easy to rejig the code logic so the output comes out just the way you want it without having to resort to complicated control tags.
Besides, H-T is good as it does exactly what you are asking it to do... you are putting whitespace (for legibility) and then asking the program to strip it out (for bandwidth)... just run htmltidy or whatever approp. tool to strip the whitespace out before putting it up for serving. I actually find H-T output to be quite pretty and compact.
;-)
-------------------------------------------------------
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