Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i'd like to be able to access assets from within .coffee, .js or .styl #100

Open
gregory opened this issue Oct 15, 2013 · 2 comments
Open

Comments

@gregory
Copy link

gregory commented Oct 15, 2013

I kind of having hard time to understand the existing code for jade so I decided to open an issue.

I guess the quickfix would be to append

var assets = { 
  assets: #{JSON.stringify(assets)},
  url: #{(url) -> @assets[url]}
};

like it's done for jadeasset.

If anyone could do that i'd be glad.

My original issue is that i'm using requirejs and i'd need to be able to access assets.url.

thanks!

@ronaldcurtis
Copy link

+1

Would love to have this feature as well.

@ronaldcurtis
Copy link

My apologies, I just noticed that asset-rack automatically transforms image references in .styl to the md5 hashed version. Very cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants