Sha256: 60307af29e4c84798b03407e1647b72a1e17d644ab9f7731625757be9f0ff152

Contents?: true

Size: 552 Bytes

Versions: 12

Compression:

Stored size: 552 Bytes

Contents

# 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".freeze]
        temple << compile_with_tilt(node, 'less', indent_width: 2)
        temple << [:static, "</style>".freeze]
        temple
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
hamlit-2.2.4 lib/hamlit/filters/less.rb
hamlit-2.6.1 lib/hamlit/filters/less.rb
hamlit-2.6.0 lib/hamlit/filters/less.rb
hamlit-2.5.0 lib/hamlit/filters/less.rb
hamlit-2.4.2 lib/hamlit/filters/less.rb
hamlit-2.4.1 lib/hamlit/filters/less.rb
hamlit-2.4.0 lib/hamlit/filters/less.rb
hamlit-2.3.1 lib/hamlit/filters/less.rb
hamlit-2.3.0 lib/hamlit/filters/less.rb
hamlit-2.2.3 lib/hamlit/filters/less.rb
hamlit-2.2.2 lib/hamlit/filters/less.rb
hamlit-2.2.1 lib/hamlit/filters/less.rb