Method: Compass::Installers::Base#stylesheet_links

Defined in:
lib/compass/installers/base.rb


119
120
121
122
123
124
125
126
127
128
129
130
131
132
# File 'lib/compass/installers/base.rb', line 119

def stylesheet_links
  html = "<head>\n"
  manifest.each_stylesheet do |stylesheet|
    media = if stylesheet.options[:media]
      %Q{ media="#{stylesheet.options[:media]}"}
    end
    ss_line = %Q{  <link href="/stylesheets/#{stylesheet.to.sub(/\.sass$/,'.css')}"#{media} rel="stylesheet" type="text/css" />}
    if stylesheet.options[:ie]
      ss_line = "  <!--[if IE]>\n    #{ss_line}\n  <![endif]-->"
    end
    html << ss_line + "\n"
  end
  html << "</head>"
end