velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <nbu...@gmail.com>
Subject Re: Extracting a list of keys from a string based template
Date Thu, 20 Jul 2006 16:47:59 GMT
Search the archives for something called TemplateTool, i believe.  I
can't remember offhand where it is and have to run shortly.  if you
haven't found it by the time i get back, i'll look it up for you.

On 7/20/06, Smith, Mike H <Mike.H.Smith@pfizer.com> wrote:
> Hi,
>
>
>
> I'm a Velocity newbie, and am evaluating to see if it can address our
> relatively simple requirements.
>
>
>
> I need to use String based templates. After a bit if digging around I
> found the following function:
>
>
>
> Velocity.evaluate( context, writer, "", templateString );
>
>
>
> This works pretty well for our purposes.
>
>
>
> However I also need to get a list of candidate keys from the template
> String.
>
>
>
> So if my template contains: "$a $b" I need to extract ["a","b"].
>
>
>
> Thanks.
>
> Mike
>
>
>
>
>

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


Mime
View raw message