alexspeller / emblem-rails

Emblem.js integration with rails asset pipeline
MIT License
34 stars 21 forks source link

how to use with digest assets? #4

Closed igorbernstein closed 11 years ago

igorbernstein commented 11 years ago

I have an image in app/assets/images/logo.jpg, how can I reference it (while still using digests)? In sass-rails I can use the Asset Helpers ...whats the prescribed method here?

the brute force method would be:

img src="<%= image_path('logo') %>"

is there any syntactic sugar that can be added to make this nicer?

alexspeller commented 11 years ago

At the moment that's the only solution AFAIK.

machty commented 11 years ago

Does handlebars have a solution for this?

Perhaps a single erb js file that defines an image tag helper would do it.

On Wednesday, March 13, 2013, Alex Speller wrote:

At the moment that's the only solution AFAIK.

— Reply to this email directly or view it on GitHubhttps://github.com/alexspeller/emblem-rails/issues/4#issuecomment-14873171 .

Alex Matchneer Co-Founder and Lead Dev Useful Robot LLC http://usefulrobot.io (614) 395-8832