Sha256: e4525e8791525f5efbecade6f363baba6139a244f866ac7d4f6c0b85838473a2

Contents?: true

Size: 511 Bytes

Versions: 5

Compression:

Stored size: 511 Bytes

Contents

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

module SlimGruntHelpers

  module Models

    class UseminJs < Usemin

      protected

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

          text
        end

    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
slim-grunt-helpers-0.2.1 lib/slim-grunt-helpers/models/usemin_js.rb
slim-grunt-helpers-0.2.0 lib/slim-grunt-helpers/models/usemin_js.rb
slim-grunt-helpers-0.1.0 lib/slim-grunt-helpers/models/usemin_js.rb
slim-grunt-helpers-0.0.5 lib/slim-grunt-helpers/models/usemin_js.rb
slim-grunt-helpers-0.0.4 lib/slim-grunt-helpers/models/usemin_js.rb