I did some work with HTML::Template...  Sam, as I remember, is quite
adamant about a number of things :) He has his idea of what it does and
that's that!  Great guy though. I still use it for all of my perl needs.
I was considering using the java version until I found velocity


-----Original Message-----
From: Tim Colson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 02, 2003 10:09 AM
To: 'Velocity Developers List'
Subject: RE: Can comparisons be limited to true/false?


> I see. You want to allow only a single reference that evaluates to a 
> boolean, and want to exclude more complex expressions altogether.
I'm pretty sure that is correct to say. But the semantics can be a
little confusing. $foo.bar.bleck must 'evaluate' to a boolean, but even
though the expression $foo > $bar does 'evaluate' to a boolean -> I
don't want to allow that.

> Why would this behavior be desirable?
I'm not saying it would be. I'm curious how I might make it happen. It
is an academic pursuit. Next week, I may ask how I might change #if to
<IF>. 

I got the idea, by the way, from another template system that I use in
Perl called HTML::Template.
http://html-template.sourceforge.net/html_template.html

Sam Tregar, the author, is a well respected chap who has been building
webapps for a long time. He happens to be adamant that comparisons not
leak into the template, so HTML::Template only allows boolean references
in TMPL_IF tags.

Tim
 


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


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

Reply via email to