Sha256: f62984efc189a0a9ebba885984169c992e553b907df7fcd73b9cd901dc6c83ce

Contents?: true

Size: 384 Bytes

Versions: 62

Compression:

Stored size: 384 Bytes

Contents

# frozen_string_literal: true
module Hamlit
  class Filters
    class Scss < TiltBase
      def compile(node)
        require 'tilt/sass' if explicit_require?('scss')
        temple = [:multi]
        temple << [:static, "<style>\n"]
        temple << compile_with_tilt(node, 'scss', indent_width: 2)
        temple << [:static, "</style>"]
        temple
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
hamlit-3.0.3-java lib/hamlit/filters/scss.rb
hamlit-3.0.3 lib/hamlit/filters/scss.rb
hamlit-3.0.2-java lib/hamlit/filters/scss.rb
hamlit-3.0.2 lib/hamlit/filters/scss.rb
hamlit-3.0.1-java lib/hamlit/filters/scss.rb
hamlit-3.0.1 lib/hamlit/filters/scss.rb
hamlit-3.0.0-java lib/hamlit/filters/scss.rb
hamlit-3.0.0 lib/hamlit/filters/scss.rb
hamlit-2.16.2-java lib/hamlit/filters/scss.rb
hamlit-2.16.2 lib/hamlit/filters/scss.rb
hamlit-2.16.1-java lib/hamlit/filters/scss.rb
hamlit-2.16.1 lib/hamlit/filters/scss.rb
hamlit-2.16.0-java lib/hamlit/filters/scss.rb
hamlit-2.16.0 lib/hamlit/filters/scss.rb
hamlit-2.15.2-java lib/hamlit/filters/scss.rb
hamlit-2.15.2 lib/hamlit/filters/scss.rb
hamlit-2.15.1-java lib/hamlit/filters/scss.rb
hamlit-2.15.1 lib/hamlit/filters/scss.rb
hamlit-2.15.0-java lib/hamlit/filters/scss.rb
hamlit-2.15.0 lib/hamlit/filters/scss.rb