[Templates] ref() in TT?

Buddy Burden buddy@thinkgeek.com
Thu, 24 Aug 2006 13:06:00 -0400


Lee,

> Is there a means of determining the 'ref' of a variable in a template?
>  
> [% IF passed_var.ref == 'ARRAY' ...? %]

I would just use [% passed_var.list() %] ... this usually eliminates the need for the [% IF %] in the first place. 
That's what I think of as "the TT2 way".


		-- Buddy