Skip to content

Instantly share code, notes, and snippets.

@bionicpill
Created February 20, 2012 23:28
Show Gist options
  • Save bionicpill/1872262 to your computer and use it in GitHub Desktop.
Save bionicpill/1872262 to your computer and use it in GitHub Desktop.
def td(styles='font-size:12px;', attributes='valign="top"', &block)
"<td #{attributes} style=\"color:#666; font-family: Arial, Helvetica, FreeSans, Clean, sans-serif; line-height:18px; #{styles}\">" <<
capture(&block) <<
"</td>".html_safe
end
def h1(&block)
content = "<h1 style=\"font-family:'Trebuchet MS', Tahoma, Verdana, sans-serif; font-size:20px; margin:0; padding:0 0 4px\">"
content << capture(&block)
content << "</h1>"
content.html_safe
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment