> 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]

Reply via email to