Sha256: 739e7bdadbf319eab88912e8f67b48caf077618abe6e9b44cb6374bfaab12b74

Contents?: true

Size: 408 Bytes

Versions: 9

Compression:

Stored size: 408 Bytes

Contents

# frozen-string-literal: true
require_relative '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

9 entries across 9 versions & 1 rubygems

Version Path
faml-0.7.3 lib/faml/filter_compilers/css.rb
faml-0.7.2 lib/faml/filter_compilers/css.rb
faml-0.7.1 lib/faml/filter_compilers/css.rb
faml-0.7.0 lib/faml/filter_compilers/css.rb
faml-0.6.5 lib/faml/filter_compilers/css.rb
faml-0.6.4 lib/faml/filter_compilers/css.rb
faml-0.6.3 lib/faml/filter_compilers/css.rb
faml-0.6.2 lib/faml/filter_compilers/css.rb
faml-0.6.1 lib/faml/filter_compilers/css.rb