I wrote: 
> Is there any way to work around the lack of a ref() vmethod in TT2?

I worked around it this way:

[% IF var.keys %]
        [%# hash %]
[% ELSIF var.0 %]
        [%# array %]
[% ELSE %]
        [% var %]
[% END %]

Hopefully there aren't any weird boundary cases that would throw this off.

- Mark.


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to