twolfson/json2css — pull request #6 by MisterGrumpyPants (2013-05-10 01:00:37+00:00)
Title: Allow parallel spritesheets by adding support for spriteName option

My goal is to be able to create multiple spritesheets for a given site and import them into the same master stylesheet (via a preprocessor). Useful when spritesheets start becoming impractically large. It didn't work with the current setup, because the mixin names plugged into the different sprite stylesheets would override each other and get tangled up. So I tried to add support for a "spriteName" property: when set, it adds to the mixin names in the output sprite stylesheet, making them specific to a certain sprite -- that way, for instance, i could have one sprite mixin for sprite-universal and another for sprite-pageone.

To do this I had to change these mustache templates and add a couple of lines to grunt-spritesmith.js -- a different pull request I'll make now.