rstacruz / sinatra-assetpack

Package your assets transparently in Sinatra.
http://ricostacruz.com/sinatra-assetpack/
MIT License
542 stars 97 forks source link

SVG in object tags #154

Closed osdiab closed 10 years ago

osdiab commented 10 years ago

Hi,

I use in my site SVG images in <object> tags, and now I'm migrating to Sinatra Assetpack. How would I get the proper URL's for them (the data attribute of the <object>)? Does assetpack have a helper or some other way of making an image in this fashion?

If not, then is there a workaround (like making an exception for packing SVG's or something)? I want to keep using this method of embedding SVG's, since I need direct access to the DOM of the SVG's for animations. Thanks!

j15e commented 10 years ago

Unfortunately no, see #129 which is still open and should not require lot of work to implement.