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 Thu, 10 Oct 2002 23:46:21 GMT
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...

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