Created
July 3, 2009 05:32
-
-
Save rhysyngsun/139920 to your computer and use it in GitHub Desktop.
This file contains 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
Source: | |
def builder = new GroovyCssBuilder(); | |
def str = builder."#header" { | |
"bg-color" 0x000000 | |
"border-color" 0x4820bf | |
h1 { | |
".sub" { | |
"text-decoration" "underline" | |
} | |
color 0xffffff | |
display "none" | |
} | |
} | |
Generated: | |
#header { | |
bg-color: #000000; | |
border-color: #4820BF; | |
} | |
#header h1 { | |
color: #FFFFFF; | |
display: none; | |
} | |
#header h1 .sub { | |
text-decoration: underline; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment