Skip to content

Added support for the $<sprite-map>-prefix attribute. #1521

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: stable
Choose a base branch
from
Open

Added support for the $<sprite-map>-prefix attribute. #1521

wants to merge 3 commits into from

Conversation

mrinck
Copy link

@mrinck mrinck commented Jan 19, 2014

With the $-prefix attribute the default prefix (= sprite folder name) for the generated sprite classes can be overwritten.

My use case: In some cases we use our company branded icons as single images, in other cases they are merged in sprite sheets. It's easier for everyone if file names and sprite classes are identical. So i don't want the sprite classes to be prefixed with their including folder's name. In this case I set the $-prefix to null.
(This could also be the use case for Issue #249)

I found the existing $-prefix attribute in the original code unused. So I hijacked it for my purposes.

chriseppstein and others added 3 commits December 4, 2013 15:10
Fix invalid method call for strip_trailing_seperator in configuration
This reverts commit af1892b, reversing
changes made to 587c2e5.
@chriseppstein
Copy link
Member

This is a good patch, but we need to have it rebased on top of master after #1771 lands.

@scottdavis scottdavis force-pushed the stable branch 4 times, most recently from 34c8530 to d5df161 Compare January 15, 2015 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants