class Middleman::CoreExtensions::DefaultHelpers
def capture_html(*args, &block)
def capture_html(*args, &block) handler = auto_find_proper_handler(&block) captured_block, captured_html = nil, "" if handler && handler.is_type? && handler.block_is_type?(block) captured_html, captured_block = handler.capture_from_template(*args, &block) end # invoking the block directly if there was no template captured_html = block_given? && ( captured_block || block.call(*args) ) if captured_html.blank? captured_html end