> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
>
>
> Jose Alberto Fernandez wrote:
> >
> > The point here is not how to escape but that the regular
> way to do this,
> > i.e., pass your value thru a function, or write a macro
> that calls that
> > function; they just polute the template and makes the whole
> thing dificult
> > to read.
> >
> > The need is for a mechanism that can perform this
> transformations implicitly
> > without having to call something everytime we type "${....}".
> >
>
> What's the downside again for postprocessing the rendered stream?  I
> don't remember...
>

Not sure what you mean, but don't you usually need to know the syntactic
context to decide what kind of processing to do?

The point is that within the template code you know, in principle, the
syntactic context in which you are expanding. Therefore you could direct
your custom listener to do different things at different points.

That, and the fact that constant text in the template does not get affected
by the listener operation, I think are good reasons against postprocessing.

Jose Alberto



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to