Skip to content

Instantly share code, notes, and snippets.

@jstrachan
Created March 31, 2010 13:56
Show Gist options
  • Select an option

  • Save jstrachan/350336 to your computer and use it in GitHub Desktop.

Select an option

Save jstrachan/350336 to your computer and use it in GitHub Desktop.
table.people {
- val people = someFunction
- for (person <- people)
td.name {
color: blue; /** style rule */
= person.name /** data rule */
}
}
makes CSS
table.people td.name {
color: blue;
}
if you really cared about avoiding the CSS nest
table.people {
- val people = someFunction
- for (person <- people)
td.name {
= person.name /** data rule */
}
}
td.name {
color: blue; /** style rule */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment