Closed jonathanrdelgado closed 10 years ago
I am not sure why you closed this issue but to answer your question: No, I am not opposed to it.
Ideally, this would mimic the behavior of cssTemplate
from grunt-spritsmith
https://github.com/Ensighten/grunt-spritesmith/tree/1.22.0#csstemplate https://github.com/Ensighten/grunt-spritesmith/blob/1.22.0/src/grunt-spritesmith.js#L130-L146
I left it out of the initial port due to thoughts about this scenario being a separate pipe
flow with spritesmith
itself. However, that does not seem like a low hanging fruit and would touch a lot of repos.
@twolfson Closed because this can be accomplished through post-processing. :)
Thanks!
Ah, very nice. Can you provide an example of what you did? I was scared that a string would be too brittle so I am interested.
For reference, we have added cssTemplate
support via #3. It was released in 0.2.0
.
@twolfson Sorry for not responding on this, I guess I dismissed the notification accidentally.
I just did a regex and templated the data.
Glad to see this is a feature now, though.
As a heads up, gulp.spritesmith@3.5.0
now supports retina spritesheets. More information can be found here:
https://github.com/twolfson/gulp.spritesmith#retina-parameters
https://github.com/twolfson/gulp.spritesmith#retina-spritesheet
Would you be opposed to a PR that added an option to utilize
json2css.addMustacheTemplate
?We have a retina sprite that requires some special options.