app/assets/stylesheets/mountain_view.css.erb
<% MountainView.configuration.included_stylesheets.each do |included_stylesheet| %>
<%= require_asset included_stylesheet %>
<% end %>
<% if Dir.exist?(MountainView.configuration.components_path) %>
<% depend_on MountainView.configuration.components_path.to_s %>
<% Dir.glob(MountainView.configuration.components_path.join('*')).each do |component_dir|
component = File.basename component_dir
begin
require_asset "#{component}/#{component}.css"
rescue Sprockets::FileNotFound
Rails.logger.debug("MountainView: stylesheet not found for component '#{component}'")
%>
/* MountainView: stylesheet not found for component '<%= component %>' */
<%
end
end %>
<% else %>
<% depend_on Rails.root.join('app').to_s %>
<% end %>