My template has an object. That object has a method which returns a list (not a listref - an actual list). In my template I want to print the size of that list. If the list is empty I want to print 0.
However, [% obj.method.size %] and [% obj.method.list.size %] both print nothing at all. What magical incantation can I use to avoid having to set up a macro just to turn this into a 0? (I'm passing this value around so I can't even just do [% obj.method.size || 0 %]) Tony _______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
