sproutcore / abbot

SproutCore Build Tools [deprecated]
http://www.sproutcore.com
88 stars 44 forks source link

Spriting to multiple files #70

Open joegaudet opened 13 years ago

joegaudet commented 13 years ago

I would like to be able to specify the file target for the sprite so I can animate background images, and also exclude large / lazily loaded files to a different sprite.

ialexi commented 13 years ago

I think this would be a great feature to have. Given that Abbot lets Chance supply any sprite names it wants (the files end up being called stylesheet-(sprite name).png I believe) this is rather simple. The tricky part is figuring out the best syntax.

@include slice(file.png, $sprite: spritename)? Not sure if that's good enough.

joegaudet commented 13 years ago

Seems totally reasonable to me... That's about as simple as you could get no?

The only thing I could think to make it more simple would be an optional end parameter (so it wouldn't have to be named).

.joe