This is probably something best handled by a Filter, not in a template. But that said, no, there is no stop parsing command anymore. As of Velocity 1.7, #stop is used to stop *rendering* instead of parsing. But i think that's what you want, right?
On Sun, Jan 29, 2012 at 12:49 PM, Andrew Ducker <and...@ducker.org.uk> wrote: > Is there a way to say "Stop parsing at this point"? > > I can wrap the two paths through my document in an #if #else but it would > feel a bit cleaner to me to say: > #if(!$user.loggedIn) > You are not logged in > #STOPOPROCESSING > > And then have the rest of my document underneath that. > > If that's not possible then I'll live with: > #if(!$user.loggedIn) > You are not logged in > #else > Do lots of stuff > #end > > Thanks, > > Andy > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org > For additional commands, e-mail: user-h...@velocity.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org For additional commands, e-mail: user-h...@velocity.apache.org