velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claude Brisson" <cla...@savoirweb.com>
Subject Re: convenience global static method for parse validity of templates?
Date Tue, 17 Sep 2002 21:56:57 GMT
then, give it a dummy context and catch exceptions, no ?

CloD

----- Original Message ----- 
From: "Mark D. Anderson" <mda@discerning.com>
To: "Velocity Users List" <velocity-user@jakarta.apache.org>
Sent: mardi 17 septembre 2002 21:37
Subject: convenience global static method for parse validity of templates?


> I'd like to make an ant task that does a check of the syntax validity of
> all the velocity templates in a directory, or of any one template file i happen to name.
> 
> So far, there seems to be no global static method exposed which makes
> this easy (say, from Velocity or RuntimeSingleton classes).
> 
> All I see are methods to do a merge with a context (which i don't have;
> i just want to catch stupid velocity syntax problems).
> All i see requires at least two steps of getTemplate() and then Template.process.
> 
> -mda
> 
> 
> 
> --
> 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