[Templates] ref() in TT?
Josh Rosenbaum
josh@infogears.com
Thu, 24 Aug 2006 08:33:10 -0600
Check out this previous discussion on this:
http://www.template-toolkit.org/pipermail/templates/2006-April/thread.htm=
l#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 vi=
a 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?
> =20
> [% IF passed_var.ref =3D=3D 'ARRAY' ...? %]
> =20
>=20
> Lee Goddard
>=20
> Independent Contractor, Software Development/Analysis
> BBC Radio & Music Interactive
> =E2=98=BA Room 718 | Henry Wood Hs | Regents St | London W1 1AA | UK
> ( 020 776 50849
> * _lee.goddard@bbc.co.uk_=20
> <mailto:lee.goddard@bbc.co.uk> lee@server-sidesystems.ltd.uk=20
> <mailto:lee@server-sidesystems.ltd.uk>
>=20
> =20
>=20
> http://www.bbc.co.uk/
>=20
> 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.
>=20