velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Goetz <>
Subject Re: Appearance of undefined references
Date Mon, 25 Sep 2000 23:18:37 GMT

>In this particular case it won't solve the problem because you'll have
>space(s) inside the quotes, and it looks like there is no (good) way to get
>an zero-length string.

Actually, not, because WM eats white space preceding directives.  This was 
to allow people to do
#if (blah) {
more stuff

putting the directives on their own lines (for readability) without 
introducing extra white space/newlines in the output.

>So, is this a bug or the intended syntax? What is the reason to require a
>whitespace in front of a directive if it's not required in front of $ ?

It was to be nice to the HTML people who wanted to do
   <A HREF="something#anchor">
without making them quote the # character.

Brian Goetz
Quiotix Corporation           Tel: 650-843-1300            Fax: 650-324-8032

View raw message