Sha256: ad74d0ed92e8de908b294b734abe5f0490f97c0a31b970e27a73a79e61b84dbb
Contents?: true
Size: 1.01 KB
Versions: 4
Compression:
Stored size: 1.01 KB
Contents
# Ember::Rails::Assets `asset-path` helper for ember-rails, including digests in production! ## Installation Add this line to your application's Gemfile: ```ruby gem 'ember-rails-assets' ``` ## Usage Ember: Require `ember-rails-assets` anywhere, then use the `asset-path` helper in your template: ```javascript // app/assets/javascripts/application.js //= require ember-rails-assets ``` ```handlebars <!-- app/assets/javascripts/templates/application.hbs --> <img src="{{asset-path "logo.png"}}" /> ``` This will output `<img src="/assets/logo.png" />` in development, and `<img src="/assets/logo-a7f68910d32291ed6470a764a2e59465.png" />` in production. ## Requirements This gem supports Rails 4.x and Ember 1.13.x and up. ## Contributing 1. Fork it ( https://github.com/botandrose/ember-rails-assets/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ember-rails-assets-0.2.3 | README.md |
ember-rails-assets-0.2.2 | README.md |
ember-rails-assets-0.2.1 | README.md |
ember-rails-assets-0.2.0 | README.md |