[Rails] [Closes #32] Don't suggest creating a stylesheet link to partials.
This commit is contained in:
parent
4276d34b80
commit
50aa936e02
@ -117,6 +117,8 @@ Compass.configure_sass_plugin!
|
|||||||
def stylesheet_links
|
def stylesheet_links
|
||||||
html = "%head\n"
|
html = "%head\n"
|
||||||
manifest.each_stylesheet do |stylesheet|
|
manifest.each_stylesheet do |stylesheet|
|
||||||
|
# Skip partials.
|
||||||
|
next if File.basename(stylesheet.from)[0..0] == "_"
|
||||||
ss_line = " = stylesheet_link_tag '#{stylesheet_prefix}#{stylesheet.to.sub(/\.sass$/,'.css')}'"
|
ss_line = " = stylesheet_link_tag '#{stylesheet_prefix}#{stylesheet.to.sub(/\.sass$/,'.css')}'"
|
||||||
if stylesheet.options[:media]
|
if stylesheet.options[:media]
|
||||||
ss_line += ", :media => '#{stylesheet.options[:media]}'"
|
ss_line += ", :media => '#{stylesheet.options[:media]}'"
|
||||||
|
Loading…
Reference in New Issue
Block a user