Sha256: 6c213482f465897bb368ca9005fbc3770b13b4091d8befb96b361f2acf7d4d07

Contents?: true

Size: 353 Bytes

Versions: 7

Compression:

Stored size: 353 Bytes

Contents

require 'faml/filter_compilers/tilt_base'

module Faml
  module FilterCompilers
    class Sass < TiltBase
      def compile(texts)
        temple = [:multi, [:static, "\n"], [:newline]]
        compile_with_tilt(temple, 'sass', texts)
        [:haml, :tag, 'style', false, [:html, :attrs], temple]
      end
    end

    register(:sass, Sass)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
faml-0.2.6 lib/faml/filter_compilers/sass.rb
faml-0.2.5 lib/faml/filter_compilers/sass.rb
faml-0.2.4 lib/faml/filter_compilers/sass.rb
faml-0.2.3 lib/faml/filter_compilers/sass.rb
faml-0.2.2 lib/faml/filter_compilers/sass.rb
faml-0.2.1 lib/faml/filter_compilers/sass.rb
faml-0.2.0 lib/faml/filter_compilers/sass.rb