velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Rudnicki <jdr5l...@pacbell.net>
Subject Re: Whitespace, redux
Date Thu, 11 Apr 2002 05:17:56 GMT
> [snip]
> > This whole problem strikes me as something that is not an issue for the
> > parser at all.  I like Geir's position that the parser just sees a
> character stream.  To that end, it already does too much by eating some
line ends.
>
> Despite of my previous letter I like this approach,  but then Velocity
> should support pluggable preprocessors... but see bellow.

Maybe the first characters of the template can be
#preprocess(net.mine.velocity.SpecificRulesTextTemplatePreprocessor)

Now just make a PreprocessingFileResourceLoader.  It checks for the
#preprocess() directive, and if present runs the remainder through the
specified class.




--
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