Sha256: 014ec1c493210fc2af70ee89515b264a09eca8b37a217b4326ecef304b748bde

Contents?: true

Size: 377 Bytes

Versions: 7

Compression:

Stored size: 377 Bytes

Contents

require 'faml/filter_compilers/base'

module Faml
  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

7 entries across 7 versions & 1 rubygems

Version Path
faml-0.2.6 lib/faml/filter_compilers/css.rb
faml-0.2.5 lib/faml/filter_compilers/css.rb
faml-0.2.4 lib/faml/filter_compilers/css.rb
faml-0.2.3 lib/faml/filter_compilers/css.rb
faml-0.2.2 lib/faml/filter_compilers/css.rb
faml-0.2.1 lib/faml/filter_compilers/css.rb
faml-0.2.0 lib/faml/filter_compilers/css.rb