|
Re: Using #stop: msg#00140jakarta.velocity.user
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. Nathan Bubna nathan@xxxxxxxx |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Using #stop: 00140, Rodrigo Reyes |
|---|---|
| Next by Date: | Re: Velocity macros for recursive display of tree?: 00140, Claude Brisson |
| Previous by Thread: | Using #stopi: 00140, Rodrigo Reyes |
| Next by Thread: | Re: Using #stop: 00140, Geir Magnusson Jr . |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |