Sha256: 631e2c70a9cca8d4acfeeab1ef1f100bd7cc74f88056af3a2b04ff3dff89aa4c

Contents?: true

Size: 400 Bytes

Versions: 4

Compression:

Stored size: 400 Bytes

Contents

require 'faml/filter_compilers/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

4 entries across 4 versions & 1 rubygems

Version Path
faml-0.3.1 lib/faml/filter_compilers/scss.rb
faml-0.3.0 lib/faml/filter_compilers/scss.rb
faml-0.2.16 lib/faml/filter_compilers/scss.rb
faml-0.2.15 lib/faml/filter_compilers/scss.rb