Sha256: 83cb2f1ac76a204b29aed662d9ee36d06bd5276887c133b337f9f147a611742a

Contents?: true

Size: 555 Bytes

Versions: 3

Compression:

Stored size: 555 Bytes

Contents

require 'slim-grunt-helpers/models/usemin'

module SlimGruntHelpers

  module Models

    class UseminCss < Usemin

      BASE_OPTIONS = { rel: 'stylesheet' }.freeze

      protected

        def transform_link(link)
          text  = %Q{<link href="#{ link[:path] }"}
          link[:options].each do |key, value|
            if value == true
              text << %Q{ #{ key }}
            elsif value
              text << %Q{ #{ key }="#{ value }"}
            end
          end
          text << ' />'

          text
        end

    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
slim-grunt-helpers-0.0.3 lib/slim-grunt-helpers/models/usemin_css.rb
slim-grunt-helpers-0.0.2 lib/slim-grunt-helpers/models/usemin_css.rb
slim-grunt-helpers-0.0.1 lib/slim-grunt-helpers/models/usemin_css.rb