[stringtemplate-interest] Attribute not found exception?
Koen Van Exem
koen at allors.com
Tue Mar 28 03:22:51 PST 2006
Hi Kunle,
If this is a design choice, then couldn't we add a
'strict' mode, just like the 'lint' mode?
This is one of the reasons why people are migrating
from Velocity to FreeMarker.
Another option could be a sending a warning to
the errorlistener?
If you want then I'll code it and send you a patch?.
With kind regards,
Koen
PS: I meant 'piece' of software, although it actually gave me some
'peace' of mind when switching from Velocity ;-)
Kunle Odutola wrote:
>> Hello,
>>
>> First of all let me say thank you for this nice peace of software!
>>
>> Is it a deliberate design decision not throw an Exception when
>> an attribute is not found? (ST#)
>>
>
> Yes. If a referenced attribute is not found, the attribute expression
> evaluates to an empty string.
>
>
> Kunle
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org:8080/mailman/listinfo/stringtemplate-interest
>
More information about the stringtemplate-interest
mailing list