Skip to content

Instantly share code, notes, and snippets.

@jaredatron
Created May 11, 2009 23:55
Show Gist options
  • Select an option

  • Save jaredatron/110243 to your computer and use it in GitHub Desktop.

Select an option

Save jaredatron/110243 to your computer and use it in GitHub Desktop.
def banner(text_content, &block)
text_content = capture(block) if block_given?
haml_tag :div, {:class => 'banner fontface'} do
haml_tag :span, text_content
haml_tag :div, {:class => 'runner top'}
haml_tag :div, {:class => 'runner bottom'}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment