mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-28 09:24:24 +01:00
simpler way to import scss from plugins
This commit is contained in:
parent
0c00bf5895
commit
a47a78fe9c
@ -35,8 +35,7 @@
|
||||
|
||||
@import "app.responsive";
|
||||
|
||||
<% FabManager.plugins.each do |plugin| %>
|
||||
<% plugin.styles.each do |style| %>
|
||||
<%= "@import '#{style}';" %>
|
||||
<% end %>
|
||||
<% PluginRegistry.stylesheets.each do |stylesheet| %>
|
||||
<% basename = File.basename(stylesheet,'.scss') %>
|
||||
<%= "@import '#{basename}';" %>
|
||||
<% end %>
|
||||
|
@ -62,7 +62,7 @@ module Plugin
|
||||
assets << [full_path, opts]
|
||||
end
|
||||
|
||||
def register_css(style)
|
||||
def register_css(style) # useless ?
|
||||
styles << style
|
||||
end
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
register_asset "stylesheets/navi_gami.scss"
|
||||
register_asset "javascripts/navi_gami.coffee.erb"
|
||||
|
||||
register_css('navi_gami')
|
||||
|
||||
PLUGIN_NAME ||= "navi_gami".freeze
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user