velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Chen <alac...@cisco.com>
Subject Re: How to find out looping reference
Date Fri, 11 Oct 2002 21:44:29 GMT
Thanks, I modified the tool to check for reference's parent.
-Alan

Geir Magnusson Jr wrote:

> On 10/10/02 7:29 PM, "Alan Chen" <alachen@cisco.com> wrote:
> 
> 
>>Hi,
>>
>>I am using the templatetool in the contrib/temporary directory
>>to get all the references in a template. But I need find out
>>if a reference is only used in #foreach loop.
>>
>>For example:
>>
>>#foreach ($item in $itemlist)
>> $item
>>#end
>>
>>How can I find out $item is the looping reference?
>>
>>Any help much appreciated.
>>
> 
> That's a good one :)
> 
> The only thing I can think of is to modify the tool to tell you how it's
> used - in a VM, directive, foreach etc...
> 
> 



--
To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>


Mime
View raw message