Skip to content

Instantly share code, notes, and snippets.

@wrburgess
Created November 7, 2011 02:12
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 wrburgess/1344048 to your computer and use it in GitHub Desktop.
Save wrburgess/1344048 to your computer and use it in GitHub Desktop.
return body class for markup
# return body class for markup
def body_class
base_body_class = "[site-name]"
if @body_class.nil?
base_body_class
else
base_body_class + " #{@body_class}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment