I started playing with SASS and Stylus but I’m having trouble pushing elements onto a list.
For instance:
$names: adam john wynn mason kuroir
.photos
@each $name in $names
.photo-#{$name}
background: image-url("avatars/#{$name}.png") no-repeat
I want to add my name to the $names list without re-specifying all the existing names. Is it possible?
The Stylus equivalent command is
push()See here http://learnboost.github.com/stylus/docs/bifs.html