Sha256: 3a51d26012d80e36d3a91f630d7db4abee0218057b480148f4abb9cf0718a3d2

Contents?: true

Size: 386 Bytes

Versions: 1

Compression:

Stored size: 386 Bytes

Contents

require 'fast_haml/filter_compilers/base'

module FastHaml
  module FilterCompilers
    class Css < Base
      def compile(texts)
        temple = [:multi, [:static, "\n"], [:newline]]
        compile_texts(temple, texts, tab_width: 2)
        temple << [:static, "\n"]
        [:haml, :tag, 'style', false, [:html, :attrs], temple]
      end
    end

    register(:css, Css)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fast_haml-0.1.10 lib/fast_haml/filter_compilers/css.rb