velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Bachelder" <cho...@chowda.net>
Subject Re: List of variables present in the template?
Date Mon, 26 Nov 2001 16:23:49 GMT
it think it would be interesting for debugging occasionally.. although I
can't think of an example off the top of my head... another think that could
be useful once and a while (maybe) would be the ability to get a hash where
the key is the unique $variables and the object is a Collection of values it
holds in the template(before or after rendering)... I would use this when I
have particularly complex templates and I am trying to debug a specific
problem and don't want to dig through the entire bag of schmoo to see if
something worked... it would make unit tests of template related stuff a bit
neater too maybe...




----- Original Message -----
From: "Geir Magnusson Jr." <geirm@optonline.net>
To: <velocity-user@jakarta.apache.org>
Sent: Monday, November 26, 2001 11:11 AM
Subject: Re: List of variables present in the template?


> On 11/26/01 11:01 AM, "JD Evora" <jdevora@saadian.com> wrote:
>
> >
> > Hi,
> >
> > Does anyone know if the Velocity API has a method for get all the
variables
> > present in a template?
> >
>
> No, but at this rate, I am going to write one.  This is the second request
> for this in a week.
>
> It will be simple and quick to do...
>
> Why do you want this, if I may ask?
>
> --
> Geir Magnusson Jr.                                     geirm@optonline.net
> System and Software Consulting
> "They that can give up essential liberty to obtain a little temporary
safety
> deserve neither liberty nor safety." - Benjamin Franklin
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:velocity-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:velocity-user-help@jakarta.apache.org>
>
>


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