Ensighten/grunt-spritesmith — pull request #22 by MisterGrumpyPants (2013-05-10 01:01:47+00:00)
Title: Allow parallel spritesheets by adding support for spriteName option

[See https://github.com/twolfson/json2css/pull/6]

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.

So I added a couple of lines to grunt-spritesmith.js and modified the mustache templates in json2css (see url above).