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

Already on GitHub? Sign in to your account

Rails 3 and some fixes for referencing SVG font files #8

Open
wants to merge 5 commits into
from

Conversation

Projects
None yet
1 participant
Contributor

caleb commented Jan 3, 2011

Rails 3 has an additional argument to 'rewrite_asset_path' so we need to add another argument.

Also, some SVG url() references in CSS files have hash parts, which reference a specific font in the SVG file, so we should assume that a hash in a CSS url() is not part of the resource filename.

What do you think?

Caleb Land added some commits Dec 22, 2010

ignore url hash paths when finding asset files
SVG files (e.g. for fonts) sometimes use a hash
component in their url to load a specific font
from a collection of fonts in one svg file.

We should treat these hash components like we do
query strings, and ignore them when trying to find
files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment