From: Jim Weirich Date: 2005-03-03T09:43:16+09:00 Subject: Re: Erb: terminating a script? On Wednesday 02 March 2005 07:32 am, Lloyd Zusman wrote: > I want to do something similar in Erb: > > A
> B
> <% WHAT GOES HERE TO END THE SCRIPT? %> > C
> D
> > 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
B
<% quit_early.call %> C
D
<% 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)