Re: [Templates] creating lists
[prev]
[thread]
[next]
[Date index for 2004/12/01]
Dave Howorth wrote:
> my_hash.$listname.push(a_number)
>
> This doesn't work...
[...]
> Is there a neat way to do this?
DEFAULT my_hash.$listname = [ ];
my_hash.$listname.push(a_number)
The DEFAULT will ensure that you create the list the first time (and only
the first time) it is used.
A
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates
 |
 |
Re: [Templates] creating lists
Andy Wardley 16:46 on 01 Dec 2004
|