Class: FastHaml::FilterCompilers::Scss

Inherits:
TiltBase show all
Defined in:
lib/fast_haml/filter_compilers/scss.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
11
# File 'lib/fast_haml/filter_compilers/scss.rb', line 6

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