Created
February 20, 2012 23:28
-
-
Save bionicpill/1872262 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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