Re: [Templates] FOREACH question

2012-08-23 Thread Mark Haney
On 08/23/2012 08:56 AM, Richard Thomas wrote: For an array variable, the vmethod .size tells you the number of elements, eg [% light.size %] For a hash, try [% light.keys.size %] Hope that helps, RET Sent from my iPhone That's precisely what I'm looking for. And my

Re: [Templates] FOREACH question

2012-08-23 Thread Tom Molesworth
On 23/08/12 13:15, Mark Haney wrote: I have a question regarding the FOREACH loops. I have a FOREACH being used to loop through an array to insert various images into a table. Like this: [% FOREACH light IN lights %]

Re: [Templates] FOREACH question

2012-08-23 Thread Richard Thomas
For an array variable, the vmethod .size tells you the number of elements, eg [% light.size %] For a hash, try [% light.keys.size %] Hope that helps, RET Sent from my iPhone On 21/08/2012, at 4:21 AM, Mark Haney wrote: > I have a question regarding the FOREACH loops.

[Templates] FOREACH question

2012-08-23 Thread Mark Haney
I have a question regarding the FOREACH loops. I have a FOREACH being used to loop through an array to insert various images into a table. Like this: [% FOREACH light IN lights %]

[Templates] FOREACH question

2012-08-23 Thread Mark Haney
I have a question regarding the FOREACH loops. I have a FOREACH being used to loop through an array to insert various images into a table. Like this: [% FOREACH light IN lights %]