require 'faml/filter_compilers/tilt_base' module Faml module FilterCompilers class Scss < TiltBase 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 end register(:scss, Scss) end end