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

Adding timestamp to spritemaps filenames #16

Open
msinia opened this issue Jul 20, 2011 · 1 comment
Open

Adding timestamp to spritemaps filenames #16

msinia opened this issue Jul 20, 2011 · 1 comment
Labels

Comments

@msinia
Copy link

msinia commented Jul 20, 2011

I think it would be useful to add a timestamp to each of the filenames of the generated spritemaps, so as to ensure that they won't be cached.

As things are now we either have to change the filename of the spritemaps manually on the configuration (and we can only do this if there isn't more than one spritemap per stylesheet) each time we generate the spritemap, or change the name of the file after it has been generated and also all the references on the stylesheets.

By adding a timestamp to all spritemaps most of this issues would be solved. I've been looking into it but I'm somewhat at a loss as to where the logic should be added, it seems as if the filenames of the maps are not centralized in one spot and that might make matters more complicated.

@jnordberg
Copy link
Contributor

Perhaps something like allowing date formatting in output_image

spritemapper.output_image = sprite%Y-%m-%d_%H:%i:%s.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants