velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Locke" <plo...@abebooks.com>
Subject RE: Using #stop
Date Fri, 18 Jun 2004 16:56:32 GMT
#stop is really only for debugging -

Why not do something like this where your main page is in a separate
template?

#if ($state == 'AK')
	#parse('alaska.vm')
 #else
	#parse('main.vm')
 #end


-----Original Message-----
From: White, Tim [mailto:Tim.White@qwest.com] 
Sent: Friday, June 18, 2004 9:48 AM
To: velocity-user@jakarta.apache.org
Subject: Using #stop

Hi -

 Can I use #stop in this way?


----------
 #if ($state == 'AK')
	#parse('alaska.vm')
 	#stop
 #end

 <html>
 <!-- Main page -->
 ...
 </html>
-----------


I tried it, but the stop is throwing errors...

Tim

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message