Check out this previous discussion on this:
http://www.template-toolkit.org/pipermail/templates/2006-April/thread.html#8525
You can create vmethods for hashes, lists, and scalars or you can create a
routine and throw it in the vars you pass into TT. (Or you can do it via the
ROOT_OPS key as well I think.
-- Josh
Lee Goddard wrote:
Is there a means of determining the 'ref' of a variable in a template?
[% IF passed_var.ref == 'ARRAY' ...? %]
Lee Goddard
Independent Contractor, Software Development/Analysis
BBC Radio & Music Interactive
☺ Room 718 | Henry Wood Hs | Regents St | London W1 1AA | UK
( 020 776 50849
* [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain
personal views which are not the views of the BBC unless specifically
stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in
reliance on it and notify the sender immediately. Please note that the
BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates