Created
March 31, 2010 13:56
-
-
Save jstrachan/350336 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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