Hi,

> On Wednesday, March 12, 2003, at 03:03 PM, Peter Romianowski wrote:
> 
> > Hi,
> >
> >> It is nearly perfect :)
> >>
> >> Map support isn't a major change, so I think that should go in 
> >> quickly.
> >>   I don't remember the filters suggestion at the moment.
> >
> > I just mentioned it in a mail. A Filter would allow to "filter" :) 
> > rendered content. An Example:
> >
> > velocity.properties
> > -------------------
> > filter.whitespace = o.a.v.filter.WhitespaceFilter
> >
> > VTL
> > ---
> > #filter (whitespace)
> >   Hi     this      is something.
> > #end
> >
> > Output
> > ------
> > Hi this is something.
> >
> 
> Or for christoph
> 
>    Hithisissomething
> 
> :)

Ah, that could be fixed by writing a "dictionary based fuzzy logic
word extractor"-Filter, which would be applied as this:

#filter (really_sophisticated_logic_inside)
#filter (whitespace)
    Hi     this      is something.
#end
#end

This will result in: "Hi this is so me thing" - in the beta-version ;)

> 
> > That would it make easy to have full whitespace suppression. Other 
> > filters are possible (HTML-escaping & => &) IMO having such 
> > filter-mechanism and a good set of default implementations (WS, 
> > HTML-Escaping, WS+NewLine+Tab...-Fitler ...) would make 
> Velocity much 
> > more powerful.
> 
> I like that.

Once 1.3.2 is out, I could make a proposal. It is quite easy design 
though. But really powerful I think. 

Regards 

Peter


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to