velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Kimpton" <>
Subject How do I get an exception for a null macro expansion
Date Mon, 12 Mar 2001 21:19:13 GMT

Is there a way to turn on strict expansion of macros?

That is, if I have a template like this

Hello $name!

and the context entry 'name' is , then the output I get is  "Hello $name".

I know I can use $!name to get a space instead - but I would rather get an
exception in my app, so that it can report the problem.

Is there a configuration option to turn on stricter parsing?

Thanks in advance,

View raw message