On 22/10/09 14:24, Bill Moseley wrote:
> Interestingly enough, the suppression of the undefined values (foo.bar 
> when foo is undefined) turns out to be a valuable feature in creating 
> clean templates, for example [% IF foo.bar %]  is often all that is 
> needed instead of a nested IF foo.defined;  IF foo.bar;  At one point I 
> tried using DEBUG_UNDEF and coding the templates around the errors.  
> Looked too much like Perl and the templates were unwiedly.

Good point. On balance the suppressing of undef is very useful :-)

Suppressing numeric comparisons would be a bad idea imho.

S.

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to