Sha256: d1e1e8c5245c97fe11d1102463ce1e2ce3b6617e236b5547ab28be37b1d28902

Contents?: true

Size: 568 Bytes

Versions: 14

Compression:

Stored size: 568 Bytes

Contents

# frozen_string_literal: true
# LESS support is deprecated since it requires therubyracer.gem,
# which is hard to maintain.
#
# It's not supported in Sprockets 3.0+ too.
# https://github.com/sstephenson/sprockets/pull/547
module Hamlit
  class Filters
    class Less < TiltBase
      def compile(node)
        require 'tilt/less' if explicit_require?
        temple = [:multi]
        temple << [:static, "<style>\n"]
        temple << compile_with_tilt(node, 'less', indent_width: 2)
        temple << [:static, '</style>']
        temple
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
hamlit-2.8.7 lib/hamlit/filters/less.rb
hamlit-2.8.6 lib/hamlit/filters/less.rb
hamlit-2.8.5 lib/hamlit/filters/less.rb
hamlit-2.8.4 lib/hamlit/filters/less.rb
hamlit-2.8.3 lib/hamlit/filters/less.rb
hamlit-2.8.2 lib/hamlit/filters/less.rb
hamlit-2.8.1 lib/hamlit/filters/less.rb
hamlit-2.8.0 lib/hamlit/filters/less.rb
hamlit-2.7.5 lib/hamlit/filters/less.rb
hamlit-2.7.3 lib/hamlit/filters/less.rb
hamlit-2.7.2 lib/hamlit/filters/less.rb
hamlit-2.7.1 lib/hamlit/filters/less.rb
hamlit-2.7.0 lib/hamlit/filters/less.rb
hamlit-2.6.2 lib/hamlit/filters/less.rb