RE: [Templates] Why can't I create a list of named hashes?

[prev] [thread] [next] [Date index for 2004/11/18]

From: Jason Gottshall
Subject: RE: [Templates] Why can't I create a list of named hashes?
Date: 18:20 on 18 Nov 2004
> I can't understand why the following does not work:
>=20
> [%=20
>        mod_menu =3D
>        {
>           title=3D> "Title",
>           html=3D> "Html text"
>        }
> =20
>        right_modules =3D [
>           $mod_menu
>        ]

"$" is not necessary in this case (or most cases, for that matter).
Simply write:

       right_modules =3D [
          mod_menu
       ]

and you should get the behavior you want.

_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

RE: [Templates] Why can't I create a list of named hashes?
Jason Gottshall 18:20 on 18 Nov 2004

Generated at 08:56 on 15 Mar 2005 by mariachi v0.52