Rails 3.1 generators* create stubs for ".css.scss" and ".js.coffee" files in
"app/assets/" directory.

Why the double extension? It made sense in view templates (e.g.
"index.html.erb") because of the request formats and the fact that some
template engines can render multiple types of output, not just html.

Assets don't have request formats nor can Sass and CoffeeScript render
anything but CSS and JavaScript.

I understand this might have been an attempt to preserve the current "naming
convention", but is it worth preserving this "convention" now that it lost
its meaning?


[*]:
https://github.com/rails/rails/blob/ba3ea9c/railties/lib/rails/generators/rails/assets/assets_generator.rb#L28-36

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to