> Joshua Levy wrote:
> 
> This is a different experiment in avoiding HTML.  It
> may not work.  I'll know if it doesn't, so there is no
> need to tell me....

Ok.  I wont tell you then that the post was HTML. :)

> > you mean a reference called
> >
> > $2d6?
> >
> > Because references must start with a letter.
> >
> > From the VTL reference guide : [deleted]
> 
> You missed my main points.  I know (now) that it is
> illegal.  My points were: 1. the top exception said
> that it could not find a template, when in fact, there
> was a syntax error in the template. 2. WHY should
> identifiers be limited to starting with a letter?
> Since they can be lexically known by the $ at the
> start, why not let $2d6 be legal?

1) You will need to send an example.  A $2d6 should't through a
ResourceNotFoundException, nor should it log anythinglike that.

2) because

> > > BTW: I like the idea of a template returning ...
> > > [deleted for brevity]
> >
> > ?
> 
> Let me try again.  Lets say you put a syntax error
> in a template.  Something like $2.  Right now what
> will happen:
>     1a. Can't find a template exception (with a more
>        descriptive exception down the stack).

Huh?  Please upgrade to a recent version and try again.

-or-

can you tell us *precisely* what the callstack for that exception looks
like?  Just cut and paste..


>     2a. getTemplate() returns NULL.
>     3a. Text message in velocity.log

Show us the message.

> My suggestion is these things happen:
>     1b. The top level exception should be the more
>        descriptive syntax error, not the "can't find
>        template" error.

I think something is wrong here.  The current version doesn't do
anything like you are indicating.

Please send an example.


geir

>     2b. getTemplate() returns a template which, when
>        used, will always generate the text string
>        description of the syntax error in the template.
>     3b. Text message in the log file doesn't hurt anything,
>        but now, almost no one will use it, because the
>        error message came out when they tried to use the
>        template.
> 
> Joshua

-- 
Geir Magnusson Jr.                               [EMAIL PROTECTED]
Developing for the web?  See http://jakarta.apache.org/velocity/

Reply via email to