This is a nice little trick to defer some block execution in a multi-pane layout
module Views
def layout
html do
#...
body do
div.main { yield }
div.right! @_right_pane if @_right_pane
end
end
end
def _right_pane(block)
@_right_pane = block
That's pretty damned cool. Good technique!
--beppu
On Thu, Aug 28, 2008 at 3:46 AM, zimbatm [EMAIL PROTECTED] wrote:
This is a nice little trick to defer some block execution in a multi-pane
layout
module Views
def layout
html do
#...
body do
div.main { yield }
Camping::Apps is back! I don't know the *exact* reason it was being removed,
but now it's a monkey-patched array which at least doesn't leak memory when
using together with the reloader (were there more problems with this?).
I really think we need this, since there's no guaranty that only
Hi Magnus,
If I remember well, I am the one who introduced AND removed
Camping::Apps. I'm not sure anymore but I think it wasn't really used
and that solutions never really satisfied me. Do you have any use for
it ?
Cheers,
zimbatm
___
Camping-list
4 matches
Mail list logo