Skip to content

Instantly share code, notes, and snippets.

@randallb
Created June 7, 2012 16:12
Show Gist options
  • Save randallb/2889744 to your computer and use it in GitHub Desktop.
Save randallb/2889744 to your computer and use it in GitHub Desktop.
module ApplicationHelper
blocks = Hash.new()
def block(name, *args)
value = nil
buffer = with_output_buffer { value = yield(*args) }
blocks[name] = buffer
puts blocks
buffer = "<a href='http://google.com'>yo</a>"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment