velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <nbu...@gmail.com>
Subject Re: Which variables are involved in a template?
Date Thu, 19 Oct 2006 14:57:49 GMT
There's also this:

Take a look at the TemplateTool.
 http://svn.apache.org/repos/asf/jakarta/velocity/trunk/contrib/temporary/templatetool/

If you want to use an older Velocity version. :)

On 10/19/06, Javier Velez <jvelez@lsi.uned.es> wrote:
> Hi,
>
> I am developing a tool using velocity. In my application the user write
> down a template and then it is evaluated within a velocity context. But
> somtimes not all variables in template are found in the context. So I
> need a mechanism to recognize which variables could not be resolved.
>
> One solution is evaluate once the template and then parse it looking for
> string maching with $xxxx or ${xxxx}. My question is: Is there any other
> more straitforward mechanism within the velocity API that give me the
> list of unsolved variables? Or at least, is there a method in velocity
> API that returns the list of referenced variables witin a template?
>
> Thanks in forward.
>
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.408 / Virus Database: 268.13.5/483 - Release Date: 18/10/2006
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>

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