module Padrino::Helpers::OutputHelpers

def yield_content(key, *args)


yield_content(:title) || "My page title"
yield_content :head, "param1", "param2"
yield_content :include

==== Examples

as arguments after the key.
You can also pass values to the content blocks by passing them
Render the captured content blocks for a given key.
#
def yield_content(key, *args)
  blocks = content_blocks[key.to_sym]
  return nil if blocks.empty?
  blocks.map { |content|
    capture_html(*args, &content)
  }.join
end