Skip to content
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

Generate image URLs with a different base #2

Open
rhunter opened this issue Jan 14, 2010 · 2 comments
Open

Generate image URLs with a different base #2

rhunter opened this issue Jan 14, 2010 · 2 comments

Comments

@rhunter
Copy link

rhunter commented Jan 14, 2010

Currently Sprite assumes that all its work happens under a "public" directory, and that "public" directory is published at "/".

That's not the case for me -- I'm working in a Java environment with a layout like the following:

static-ui/
src/
main/webapp/
images/
style/
target/
webapp/ # published as /static-ui/
images/ # published as /static-ui/images/
style/

I'd like to generate URLs like "/static-ui/images/mysprite.png", or even "http://images.example.com/mysprite.png"

(I'm fixing this in my own fork, but leaving this ticket as a record and for discussion)

@amikula
Copy link

amikula commented Mar 15, 2010

I have a fix for this in amikula/sprite...you can install it with "gem install amikula-sprite". The config is css_image_path. Which fork is yours? I've looked at all the github forks and I didn't notice a patch for this anywhere.

@rhunter
Copy link
Author

rhunter commented Mar 16, 2010

The issue dropped in our project (the UI devs decided they were happy to do spriting by hand) and I never got around to committing my changes.

I've just dug up the code and pushed what I had -- it adds a config property "external_base" to describe the "target" folder.

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

No branches or pull requests

2 participants