Sha256: 5ce2b33050d5d64e8eac81498860c3815eb3b69cfd48ae82a92dc10fd6644744

Contents?: true

Size: 419 Bytes

Versions: 47

Compression:

Stored size: 419 Bytes

Contents

# frozen_string_literal: true
module Haml
  class Filters
    class Coffee < TiltBase
      def compile(node)
        require 'tilt/coffee' if explicit_require?('coffee')
        temple = [:multi]
        temple << [:static, "<script>\n"]
        temple << compile_with_tilt(node, 'coffee', indent_width: 2)
        temple << [:static, "</script>"]
        temple
      end
    end

    CoffeeScript = Coffee
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
haml-6.3.0 lib/haml/filters/coffee.rb
haml-6.2.5 lib/haml/filters/coffee.rb
haml-6.2.4 lib/haml/filters/coffee.rb
haml-6.2.3 lib/haml/filters/coffee.rb
haml-6.2.2 lib/haml/filters/coffee.rb
haml-6.2.1 lib/haml/filters/coffee.rb
haml-6.2.0 lib/haml/filters/coffee.rb
haml-6.1.4-java lib/haml/filters/coffee.rb
haml-6.1.4 lib/haml/filters/coffee.rb
haml-6.1.3-java lib/haml/filters/coffee.rb
haml-6.1.3 lib/haml/filters/coffee.rb
haml-6.1.2-java lib/haml/filters/coffee.rb
haml-6.1.2 lib/haml/filters/coffee.rb
haml-6.1.1-java lib/haml/filters/coffee.rb
haml-6.1.1 lib/haml/filters/coffee.rb
haml-6.1.0-java lib/haml/filters/coffee.rb
haml-6.1.0 lib/haml/filters/coffee.rb
haml-6.0.12-java lib/haml/filters/coffee.rb
haml-6.0.12 lib/haml/filters/coffee.rb
haml-6.0.11-java lib/haml/filters/coffee.rb