Sha256: a4160e5bb098a6826502667884015e0d70463835848725f423eb17bd2463895a

Contents?: true

Size: 410 Bytes

Versions: 7

Compression:

Stored size: 410 Bytes

Contents

require 'faml/filter_compilers/tilt_base'

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

    register(:coffee, Coffee)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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