Sha256: 5f749be39db1d89444c3d24598b8f0abaccd6ecda3cf383a40eb74b9ce2eb124

Contents?: true

Size: 391 Bytes

Versions: 12

Compression:

Stored size: 391 Bytes

Contents

require 'faml/filter_compilers/base'

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

    register(:css, Css)
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
faml-0.3.1 lib/faml/filter_compilers/css.rb
faml-0.3.0 lib/faml/filter_compilers/css.rb
faml-0.2.16 lib/faml/filter_compilers/css.rb
faml-0.2.15 lib/faml/filter_compilers/css.rb
faml-0.2.14 lib/faml/filter_compilers/css.rb
faml-0.2.13 lib/faml/filter_compilers/css.rb
faml-0.2.12 lib/faml/filter_compilers/css.rb
faml-0.2.11 lib/faml/filter_compilers/css.rb
faml-0.2.10 lib/faml/filter_compilers/css.rb
faml-0.2.9 lib/faml/filter_compilers/css.rb
faml-0.2.8 lib/faml/filter_compilers/css.rb
faml-0.2.7 lib/faml/filter_compilers/css.rb