twolfson/json2css — pull request #27 by benib (2014-05-20 22:02:55+00:00)
Title: allow config of sass-map name to support more than one sprite with maps

this allows the configuration of the sass-map name in cssOpts of grunt-spritesmith. This is needed if you want to generate more than one sprite with the sass-maps template.
The sass-maps format is needed if you want to be able to generate the names of the single images in f.e. a @for loop as you cannot use generated variable names in sass.

tests are changed to cover the default configuration.

Users who make use of this config setting would then probably set functions: false and write their own mixins to take the different map names into account.

This PR doesn't break bc for users who used the generated sprite mixin. Users who relied on the sprite function will see a bc break though. This is a thing that could be avoided by checking if the new option is not defined and then keep the template as it was before. This will lead to an slightly uglier template though. Let me know what you think.