Sha256: 402c5b72f8652e8ac19060be7a442fc8f56a279c899ede28841527fb0208386d

Contents?: true

Size: 543 Bytes

Versions: 3

Compression:

Stored size: 543 Bytes

Contents

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

module SlimGruntHelpers

  module Models

    class UseminJs < Usemin

      BASE_OPTIONS = {}.freeze

      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

3 entries across 3 versions & 1 rubygems

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