velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <ge...@optonline.net>
Subject Re: How to find out looping reference
Date Sat, 12 Oct 2002 15:23:23 GMT
On 10/11/02 5:44 PM, "Alan Chen" <alachen@cisco.com> wrote:

> Thanks, I modified the tool to check for reference's parent.
> -Alan

Great!  if you want, send a patch and we'll add it for others to use.

geir

> 
> 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>
> 

-- 
Geir Magnusson Jr. 
geirm@adeptra.com                                    +1-203-355-2219 (w)
Adeptra Inc.                                         +1-203-247-1713 (m)



--
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