Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Get upgrade notes from Sprockets 3.x to 4.x at https://github.com/rails/sprocket
- Adding new directive `depend_on_directory` [#668](https://github.com/rails/sprockets/pull/668)
- Fix `application/js-sourcemap+json` charset [#669](https://github.com/rails/sprockets/pull/669)
- Fix `CachedEnvironment` caching nil values [#723](https://github.com/rails/sprockets/pull/723)
- Process `*.jst.ejs.erb` files with ERBProcessor [#674](https://github.com/rails/sprockets/pull/674)

## 4.0.3

Expand Down
1 change: 1 addition & 0 deletions lib/sprockets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ module Sprockets
text/scss
text/yaml
text/eco
text/ejs
), 'application/\2+ruby', '.erb', ERBProcessor)

register_mime_type 'application/html+ruby', extensions: ['.html.erb', '.erb', '.rhtml'], charset: :html
Expand Down
1 change: 1 addition & 0 deletions test/test_transformers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def setup
['application/javascript+ruby', 0.8],
['application/coffeescript+ruby', 0.8],
["application/eco+ruby", 0.8],
["application/ejs+ruby", 0.8],
['text/mustache', 0.8], # TODO: Extra step transform should be weighted down
['text/x-handlebars-template', 0.8], # TODO: Extra step transform should be weighted down
['application/dart', 0.8]
Expand Down