Sha256: b71761f6dd1845f4e8e8dd60c6a5177f4791b6d2859aa7270a8167e6d607b83e

Contents?: true

Size: 417 Bytes

Versions: 2

Compression:

Stored size: 417 Bytes

Contents

# frozen_string_literal: true
require_relative 'tilt_base'

module Faml
  module FilterCompilers
    class Scss < TiltBase
      def compile(ast)
        temple = [:multi, [:static, "\n"], [:newline]]
        compile_with_tilt(temple, 'scss', ast, indent_width: 2)
        temple << [:static, "\n"]
        [:haml, :tag, 'style', false, [:html, :attrs], temple]
      end
    end

    register(:scss, Scss)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
faml-0.8.1 lib/faml/filter_compilers/scss.rb
faml-0.8.0 lib/faml/filter_compilers/scss.rb