Skip to content

Instantly share code, notes, and snippets.

@lukeholder
Created November 28, 2012 06:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukeholder/4159489 to your computer and use it in GitHub Desktop.
Save lukeholder/4159489 to your computer and use it in GitHub Desktop.
PrintsOfWhales
def random_home_page_blurb (blurbs)
selected_blurb = blurbs.sample
output = "<span class='heading letterspaced txtshadow-light'>#{selected_blurb[:setup]}</span><br /><br />"
output << "<span class='subheading letterspaced txtshadow-light'>#{selected_blurb[:punchline]}<span>"
span.html_safe
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment