velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Kimpton" <ch...@kimptoc.net>
Subject Re: How do I get an exception for a null macro expansion
Date Mon, 12 Mar 2001 21:39:53 GMT
Hi,

> From: Chris Kimpton [mailto:chris@kimptoc.net]
>
> > 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".
>
> Sorry?  Do you mean null above?  If there is no context entry for 'name',
> then you will get
>
> Hello $name.

Yep thats what I mean  ;-)


>
> I assume it could be added, but it seems like something that you could
solve
> other ways - for example, a reference w/ no data in the context  will be
> reported in the log - will that suffice?
>

Can I query the log in my app just after merging a template and detecting
errors then?

Thanks,
Chris


Mime
View raw message