Sha256: 38a16e40afebe6a9e4f7d1fb2e73e1c7ad28141d0314dde969dbe289d5c6521f

Contents?: true

Size: 360 Bytes

Versions: 6

Compression:

Stored size: 360 Bytes

Contents

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

6 entries across 6 versions & 1 rubygems

Version Path
hamlit-2.2.0 lib/hamlit/filters/less.rb
hamlit-2.1.2 lib/hamlit/filters/less.rb
hamlit-2.1.1 lib/hamlit/filters/less.rb
hamlit-2.1.0 lib/hamlit/filters/less.rb
hamlit-2.0.2 lib/hamlit/filters/less.rb
hamlit-2.0.1 lib/hamlit/filters/less.rb