Skip to content

Instantly share code, notes, and snippets.

@DerGuteMoritz
Created August 8, 2010 00:01
Show Gist options
  • Save DerGuteMoritz/513360 to your computer and use it in GitHub Desktop.
Save DerGuteMoritz/513360 to your computer and use it in GitHub Desktop.
def rispp_box1(title, options = {}, &block)
SXML.transform([:div, { :class => 'box1' },
[:div, { :class => 'wrap' },
[:h2, { :class => options[:class] }],
capture { block.call(title, options) }]])
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment