GoBoundless / spar

Single Page Application Rocketship
http://goboundless.github.com/spar/
MIT License
164 stars 14 forks source link

sass image_url, etc not working #13

Closed botandrose closed 11 years ago

botandrose commented 11 years ago

Howdy! The compass and sprockets-sass image_url etc helpers have a different arity than the helpers defined in Sprockets::Context, and thus, fail. A partial workaround is to include the sprockets-helpers gem, but then this doesn't take into account the digest, and then it expects the compiled asset to be living in /assets instead of /.

I'm not quite sure the best way to solve this... perhaps define some Spar-specific image_url etc helpers? What do you think?

mhodgson commented 11 years ago

Hi there, Check out version 1.0.8. I added some spar specific helpers and made sure they override the ones included in the default sprockets context. Let me know how it works!

-Matt

botandrose commented 11 years ago

Wow, quick turnaround! I can confirm that it fixes image_url, and that the digests now work as expected in different environments. Compass sprites are still missing their digests in production, but I'll open a separate issue for that.