velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will Glass-Husain" <wgl...@forio.com>
Subject Re: Using #stop
Date Fri, 18 Jun 2004 17:30:23 GMT
#stop is broken.  (more specifically, it's never worked).

If you're adventurous, here's a patch to make it work.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24189

But my experience is that you can almost always avoid using it.  Although I
can see that it is somewhat convenient for debugging.

WILL

----- Original Message ----- 
From: "White, Tim" <Tim.White@qwest.com>
To: "Velocity Users List" <velocity-user@jakarta.apache.org>
Sent: Friday, June 18, 2004 9:57 AM
Subject: RE: Using #stop


Right, that's what I ended up doing, but I was curious if that was a
possible way to use it...

> -----Original Message-----
> From: Peter Locke [mailto:plocke@abebooks.com]
> Sent: Friday, June 18, 2004 10:57 AM
> To: Velocity Users List
> Subject: RE: Using #stop
>
>
> #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
>
>

---------------------------------------------------------------------
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