logo       

Re: Using #stop: msg#00142

jakarta.velocity.user

Subject: Re: Using #stop


On Thursday, November 21, 2002, at 01:14 PM, Nathan Bubna wrote:

Roderigo said:
Hi
Is there any way to stop the template execution at any point? I tried
using #stop, but it gives me an error. Here is the code I used:

#foreach($root in $roots)
#if($queryexecuter.isEmptyElement($root))
#stop
#end
#end

What am I doing wrong? Thanx

afaik, the #stop directive does not stop template *rendering,* rather, it
stops template *parsing.* imho, a good rule of thumb when it comes to #stop
is to never use it.

frankly, i'm of the opinion #stop should be done away with.


I agree. I never liked stop - and I don't think anyone uses it.

Any disagreement?

--
Geir Magnusson Jr 203-355-2219(w)
Adeptra, Inc. 203-247-1713(m)
geirm@xxxxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise