Sha256: 9edec1af97054940830e0b49eefdb4c34f20fdcb214cd3123cbc37087e0aab3c

Contents?: true

Size: 376 Bytes

Versions: 14

Compression:

Stored size: 376 Bytes

Contents

# frozen_string_literal: true
module Hamlit
  class Filters
    class Sass < TiltBase
      def compile(node)
        require 'tilt/sass' if explicit_require?
        temple = [:multi]
        temple << [:static, "<style>\n"]
        temple << compile_with_tilt(node, 'sass', 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/sass.rb
hamlit-2.8.6 lib/hamlit/filters/sass.rb
hamlit-2.8.5 lib/hamlit/filters/sass.rb
hamlit-2.8.4 lib/hamlit/filters/sass.rb
hamlit-2.8.3 lib/hamlit/filters/sass.rb
hamlit-2.8.2 lib/hamlit/filters/sass.rb
hamlit-2.8.1 lib/hamlit/filters/sass.rb
hamlit-2.8.0 lib/hamlit/filters/sass.rb
hamlit-2.7.5 lib/hamlit/filters/sass.rb
hamlit-2.7.3 lib/hamlit/filters/sass.rb
hamlit-2.7.2 lib/hamlit/filters/sass.rb
hamlit-2.7.1 lib/hamlit/filters/sass.rb
hamlit-2.7.0 lib/hamlit/filters/sass.rb
hamlit-2.6.2 lib/hamlit/filters/sass.rb