[Templates] Variable interpolation question

Mark Mills mark@xodiax.com
Tue, 3 Sep 2002 10:45:34 -0400


> my %globals =3D (
>            user =3D> $r->user,
>            users =3D> "$users_ref"
>            );
> <b>Assign To:</b> [% CGI.popup_menu("assignee", [% $users_ref %]) %]
>=20
> and he bombs out. Obviously I can't nest the
> interpolation signs -- [% %] -- but what should I use
> instead when I have a var that needs to be interpolated
> into a context which itself is interpolated?

Dennis,

Maybe you should do:

	users =3D> $users_ref

without the quotes. Then, you should be able to do:

	[% CGI.popup_menu("assignee", users_ref) %]=20

and have it work...=20

--mark mills