Y
Hacker News
new
|
ask
|
show
|
jobs
by
mrled
685 days ago
Oh man, you're right, I didn't realize they worked this way. This basically means there is no compromise at all, I'm going to update the post. Thanks!
1 comments
panstromek
685 days ago
Well, there's still a compromise to be fair. It's defintely more work to manage these sprites and it's especially annoying when there's more than one state. I think it's possible to write some tool to automate it, but I haven't found one.
link
douglee650
685 days ago
There are preprocessors that will do this. Conceptually, we would:
include sprite-1.snippet include sprite-2.snippet
and it would write the defs into the page. Then later in the page, `<use>` the defs you included.
link