Skip to content

Instantly share code, notes, and snippets.

@scottmessinger
Created January 4, 2012 18:30
Show Gist options
  • Save scottmessinger/1561367 to your computer and use it in GitHub Desktop.
Save scottmessinger/1561367 to your computer and use it in GitHub Desktop.
optional class?
%table
%tr
%td{ ADD OPTIONAL CLASS HERE }
Text
Text
Text
@scottmessinger
Copy link
Author

scottmessinger commented Jan 4, 2012 via email

@bronson
Copy link

bronson commented Oct 9, 2013

or

%td{:class => ("yes" if truthy_value)}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment