sprite-file returning absolute path #1079

brewster1134 opened this Issue Nov 1, 2012 · 3 comments


None yet

2 participants


tjhe documentation for sprite-file($map, $sprite) says it returns a relative path, however for me it is returning an absolute path.

is there a different mixin available to get the relative path of the original sprite image in the image directory to be used with an img tag?

Compass member

I think this is another case where the docs and the implemented code do not match


Compass member

I think what you need would be a sprite-file-url function but, this would create a problem because its assumed that you can store the raw sprite images outside of the scope of your images folder.

Compass member

fixed by 8b964f2

@scottdavis scottdavis closed this Nov 1, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment