Hi, 

There were debates for #stop in former emails in this mailing list.
Bottom line I guess is #stop is not to be used.

You can search using the keyword "#stop" in my velocity mailing list
archive http://www.jhsystems.net and find relevant answers.

Cheers,

Jian

On 6/1/05, Jack Holt <[EMAIL PROTECTED]> wrote:
> Correct me if I am wrong, but it appears that #stop is not intended to
> be used conditionally.
> 
> I saw this behavior when trying to write the following macro:
> 
> #macro(test $p $n)
>         #if($!p == "")
>                 $n is required
>                 #stop
>         #end
> #end
> 
> #test($var "var")
> 
> I tried the above code in VeloGUI and noticed that velocity throws a
> ParseErrorException with a message of Encountered "EOF" at line 4,
> column 17
> 
> Am I right about this and (on a separate subject) is there a better
> way to validate that a parameter was passed to a Velocity template
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to