Class: FastHaml::FilterCompilers::Sass

Inherits:
TiltBase show all
Defined in:
lib/fast_haml/filter_compilers/sass.rb

Instance Method Summary collapse

Methods inherited from TiltBase

render_with_tilt

Methods inherited from Base

#need_newline?

Instance Method Details

#compile(texts) ⇒ Object



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

def compile(texts)
  temple = [:multi, [:static, "\n"], [:newline]]
  compile_with_tilt(temple, 'sass', texts)
  [:haml, :tag, 'style', false, [:html, :attrs], temple]
end