Sha256: b045396804f7fcc7e8d390dc16b90a3d2e5eb7d288a57d818b23022be8c7f54e

Contents?: true

Size: 533 Bytes

Versions: 19

Compression:

Stored size: 533 Bytes

Contents

module Hanami
  module Assets
    module Compilers
      # LESS compiler
      #
      # @since 0.3.0
      # @api private
      class Less < Compiler
        # @since 0.3.0
        # @api private
        EXTENSIONS = /\.(less)\z/

        # @since 0.3.0
        # @api private
        def self.eligible?(name)
          name.to_s =~ EXTENSIONS
        end

        private

        # @since 0.3.0
        # @api private
        def renderer
          Tilt.new(source, nil, paths: load_paths)
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
hanami-assets-1.3.0 lib/hanami/assets/compilers/less.rb
hanami-assets-1.3.0.beta1 lib/hanami/assets/compilers/less.rb
hanami-assets-1.2.0 lib/hanami/assets/compilers/less.rb
hanami-assets-1.2.0.rc2 lib/hanami/assets/compilers/less.rb
hanami-assets-1.2.0.rc1 lib/hanami/assets/compilers/less.rb
hanami-assets-1.2.0.beta2 lib/hanami/assets/compilers/less.rb
hanami-assets-1.2.0.beta1 lib/hanami/assets/compilers/less.rb
hanami-assets-1.1.1 lib/hanami/assets/compilers/less.rb
hanami-assets-1.1.0 lib/hanami/assets/compilers/less.rb
hanami-assets-1.1.0.rc1 lib/hanami/assets/compilers/less.rb
hanami-assets-1.1.0.beta3 lib/hanami/assets/compilers/less.rb
hanami-assets-1.1.0.beta2 lib/hanami/assets/compilers/less.rb
hanami-assets-1.1.0.beta1 lib/hanami/assets/compilers/less.rb
hanami-assets-1.0.0 lib/hanami/assets/compilers/less.rb
hanami-assets-1.0.0.rc1 lib/hanami/assets/compilers/less.rb
hanami-assets-1.0.0.beta2 lib/hanami/assets/compilers/less.rb
hanami-assets-1.0.0.beta1 lib/hanami/assets/compilers/less.rb
hanami-assets-0.4.0 lib/hanami/assets/compilers/less.rb
hanami-assets-0.3.0 lib/hanami/assets/compilers/less.rb