Sha256: 7d06c6da1d05a3213c652973eab68af72204a8ed86ad37ecc97dae72e268ab45

Contents?: true

Size: 421 Bytes

Versions: 62

Compression:

Stored size: 421 Bytes

Contents

# frozen_string_literal: true
module Hamlit
  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

62 entries across 62 versions & 1 rubygems

Version Path
hamlit-2.14.6 lib/hamlit/filters/coffee.rb
hamlit-2.14.6-java lib/hamlit/filters/coffee.rb
hamlit-2.14.5-java lib/hamlit/filters/coffee.rb
hamlit-2.14.5 lib/hamlit/filters/coffee.rb
hamlit-2.14.4 lib/hamlit/filters/coffee.rb
hamlit-2.14.4-java lib/hamlit/filters/coffee.rb
hamlit-2.14.3-java lib/hamlit/filters/coffee.rb
hamlit-2.14.3 lib/hamlit/filters/coffee.rb
hamlit-2.14.2-java lib/hamlit/filters/coffee.rb
hamlit-2.14.2 lib/hamlit/filters/coffee.rb
hamlit-2.14.0 lib/hamlit/filters/coffee.rb
hamlit-2.14.0-java lib/hamlit/filters/coffee.rb
hamlit-2.14.1-java lib/hamlit/filters/coffee.rb
hamlit-2.14.1 lib/hamlit/filters/coffee.rb
hamlit-2.13.2-java lib/hamlit/filters/coffee.rb
hamlit-2.13.2 lib/hamlit/filters/coffee.rb
hamlit-2.13.1-java lib/hamlit/filters/coffee.rb
hamlit-2.13.1 lib/hamlit/filters/coffee.rb
hamlit-2.13.0-java lib/hamlit/filters/coffee.rb
hamlit-2.13.0 lib/hamlit/filters/coffee.rb