What about #stop() ?
http://velocity.apache.org/engine/devel/user-guide.html#Stop
Otherwise, there is also a #parse macro that can help you slice your
templates into smaller ones and organize a little bit more.
Cheers,
Guillaume
Le 29/01/2012 21:49, Andrew Ducker a écrit :
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