Sha256: 742a4fc62da367eeaec60fe85d9716af04eb2fe59e18c23b8c4ffbbe7673a4ee

Contents?: true

Size: 406 Bytes

Versions: 8

Compression:

Stored size: 406 Bytes

Contents

require 'faml/filter_compilers/tilt_base'

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

    register(:coffee, Coffee)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
faml-0.2.14 lib/faml/filter_compilers/coffee.rb
faml-0.2.13 lib/faml/filter_compilers/coffee.rb
faml-0.2.12 lib/faml/filter_compilers/coffee.rb
faml-0.2.11 lib/faml/filter_compilers/coffee.rb
faml-0.2.10 lib/faml/filter_compilers/coffee.rb
faml-0.2.9 lib/faml/filter_compilers/coffee.rb
faml-0.2.8 lib/faml/filter_compilers/coffee.rb
faml-0.2.7 lib/faml/filter_compilers/coffee.rb