on 6/12/01 7:17 AM, "Paulo Gaspar" <[EMAIL PROTECTED]> wrote:
> Does someone have a clue on what the problem is?
>
> Every time a use VMs, Velocity stops making sense.
> Sorry, but I get so many weird things that I can
> only describe it this way.
>
> Example:
>
> Having the macro:
>
> #macro (mymacro $cn $cv)
> #if($cv)
> <tr><td>$cn mm</td><td>$cv</td></tr>
> #end
> #end
>
> and
>
> #mymacro($somevar $emptyVar)
>
> something gets written all the time, even if the
> $emptyVar is really "empty".
What is the "something" that gets written?
> In the past I already got to see that there seems
> to exist some wrapper to the parameter variables
> that is not invisible at all (such wrapper should
> let us see trough) and messes up this kind of test.
?
> Also, sometimes code in macros seems to become
> "persistent" (I change the template but the bit of
> formatting from inside the macro remains the same.
I believe it depends on which #macro's you are changing.
> Sorry about the sarcastic mood, but I already spent
> too much time with this. I am willing to turn by
> agressivity into solving this, but pleaaaase give
> me a clue. (I don't even know if I have to start
> learning JavaCC or if I can still void that.)
Thanks for taking your pain out on this list. We appreciate it. :-)
-jon
--
"Open source is not available to commercial companies."
-Steve Ballmer, CEO Microsoft
<http://www.suntimes.com/output/tech/cst-fin-micro01.html>