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

wants to merge 5 commits into


None yet
1 participant

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment