logo       

Re: parsing variable name in a velocity template: msg#00136

jakarta.velocity.user

Subject: Re: parsing variable name in a velocity template

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



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise