class SlimGruntHelpers::Models::UseminCss
Constants
- BASE_OPTIONS
Public Instance Methods
base_options()
click to toggle source
# File lib/slim-grunt-helpers/models/usemin_css.rb, line 11 def base_options BASE_OPTIONS end
Protected Instance Methods
transform_link(link, options={})
click to toggle source
# File lib/slim-grunt-helpers/models/usemin_css.rb, line 17 def transform_link(link, options={}) link_path = '' link_path += '/' if options[:absolute] link_path += link[:path].to_s text = %Q{<link href="#{ link_path }"} link[:options].each do |key, value| if value == true text << %Q{ #{ key }} elsif !value.nil? && value != false text << %Q{ #{ key }="#{ value }"} end end text << ' />' text end