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!
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 (thedata
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!