Skip to content

Instantly share code, notes, and snippets.

@datapimp
Created December 16, 2010 05:07
Show Gist options
  • Save datapimp/743056 to your computer and use it in GitHub Desktop.
Save datapimp/743056 to your computer and use it in GitHub Desktop.
/ just write your markup as css selector rules, the default tag is div
#html-id.html-class
/ nest things by indenting, never have to worry about closing tags again
/ specify tag name with %
%ul
%li.selected= "If you use an equal sign at the end of a tag, you can embed code"
- 3.times do |i|
%li= "If you use a - sign it won't output the result of that particular code, useful for control structures like loops ifs etc"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment