velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Rudnicki <>
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

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:   <>
For additional commands, e-mail: <>

View raw message