On Wednesday 02 March 2005 07:32 am, Lloyd Zusman wrote:
> I want to do something similar in Erb:
>
>   A<br>
>   B<br>
>   <% WHAT GOES HERE TO END THE SCRIPT? %>
>   C<br>
>   D<br>
>
> What do use for "WHAT GOES HERE ..." in order to cause the
> processing to end after A and B print out?

Here's a bizzare idea ...

<% callcc do |quit_early| %>
A<br>
B<br>
<% quit_early.call %>
C<br>
D<br>
<% end %>

Does that work?

-- 
-- Jim Weirich    jim / weirichhouse.org     http://onestepback.org
-----------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct, 
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)