Class: FastHaml::FilterCompilers::Css

Inherits:
Base
  • Object
show all
Defined in:
lib/fast_haml/filter_compilers/css.rb

Instance Method Summary collapse

Instance Method Details

#compile(texts) ⇒ Object



6
7
8
9
10
# File 'lib/fast_haml/filter_compilers/css.rb', line 6

def compile(texts)
  temple = [:multi, [:static, "\n"]]
  compile_texts(temple, strip_last_empty_lines(texts), tab_width: 2)
  [:haml, :tag, 'style', false, [:html, :attrs], temple]
end