velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <ge...@optonline.net>
Subject Re: Whitespace, redux
Date Mon, 22 Apr 2002 15:29:02 GMT
On 4/22/02 11:23 AM, "Christoph Reck" <Christoph.Reck@dlr.de> wrote:

> Daniel Dekany wrote:
>> [snip]
>> So if we would agree in it (no w.s. gobbling etc) then we could look
>> into the pluggabe preprocessor proposal, and then everybody can use
>> his/her favorite whitespace eater method. OK, a "standard"
>> preprocessor for HTML/XML is still needed, and then let it be the
>> Christoph Reck whitespace gobbler then, and implement that as a
>> preprocessor. Anybody disagree with the Christoph Reck whitespace
>> gobbler?
> 
> This thread ran off limits and did not get a consensus of what the
> "proper whitespace handling" (as Geir called it) is that could be
> implemented in the parser and AST nodes. It seems that the notion of
> what "proper" is seems to diverge (nobody direclty voted +1 for my
> proposal, and some counterproposals showed up that did not get
> any quorum either).
> 
> Well, if there is a majority that wants the "whitespace handling"
> pluggable in a preprocessor, it would also solve my proposal if a
> PlainTextPreprocessor or WhitespaceGobblerPreprocessor exists that
> does my proposed handling (I offer to write it if Geir agrees to
> take it into the core jar). To bad that the preprocessor pattern
> will require its own parsing step to influence the content
> (and thus have a performance impact).
> 
> I really do not know what was wrong with my proposed solution,
> and Daniel's "Directive+" proposal is practically the same.
> Geir ist the proposal dead or are the committers (with voting
> rights) leaning back to see if anyone else comes up with killing
> arguments of a better approach/proposal? :.(
> 
> How can non-committers get proper votes to see if we are on the
> right track to work on a patch?


Why does this need a patch?  You could write the preprocessor to be
standalone to show what it would do :

  java GobbleGoo.class < uglytempate.vm > gobbledtemplate.vm


-- 
Geir Magnusson Jr.                                     geirm@optonline.net
System and Software Consulting
Somebody has to do something, and it's just incredibly pathetic that it has
to be us.  - Jerry Garcia


--
To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>


Mime
View raw message