velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denis <brede...@mac.com>
Subject Re: parsing variable name in a velocity template
Date Fri, 23 May 2003 15:35:17 GMT
Hi Dave

On Wednesday, May 21, 2003, at 04:11  pm, Dave Newton wrote:

> For the most part I agree with everything you've said, but I have a 
> very
> specific need to know when there are variables in the template that I
> (the programmer) don't or didn't know about...
>
> We use Velocity to generate our (opt-in, lemme alone!) email 
> newsletter.
> In order to facilitate idiot-proofing I have to know if the template
> designer (definitely NOT a programmer :) either mis-spelled something,
> left something out, or added something that I don't provide.

For this use you'd better use the EventCartridge... Looks like what you 
need.

<http://jakarta.apache.org/velocity/developer-guide.html#EventCartridge 
and Event Handlers>

Cheers,
-- Denis.

>
> This knowledge allows us to unit-test (sorta) our email templates 
> (which
> we use for every email our site sends; registration confirmation,
> newsletters, etc.) and make sure that an email template hasn't been
> broken by me or the template designer.
>
> Dave
>


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