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-3.0.3-java lib/hamlit/filters/coffee.rb
hamlit-3.0.3 lib/hamlit/filters/coffee.rb
hamlit-3.0.2-java lib/hamlit/filters/coffee.rb
hamlit-3.0.2 lib/hamlit/filters/coffee.rb
hamlit-3.0.1-java lib/hamlit/filters/coffee.rb
hamlit-3.0.1 lib/hamlit/filters/coffee.rb
hamlit-3.0.0-java lib/hamlit/filters/coffee.rb
hamlit-3.0.0 lib/hamlit/filters/coffee.rb
hamlit-2.16.2-java lib/hamlit/filters/coffee.rb
hamlit-2.16.2 lib/hamlit/filters/coffee.rb
hamlit-2.16.1-java lib/hamlit/filters/coffee.rb
hamlit-2.16.1 lib/hamlit/filters/coffee.rb
hamlit-2.16.0-java lib/hamlit/filters/coffee.rb
hamlit-2.16.0 lib/hamlit/filters/coffee.rb
hamlit-2.15.2-java lib/hamlit/filters/coffee.rb
hamlit-2.15.2 lib/hamlit/filters/coffee.rb
hamlit-2.15.1-java lib/hamlit/filters/coffee.rb
hamlit-2.15.1 lib/hamlit/filters/coffee.rb
hamlit-2.15.0-java lib/hamlit/filters/coffee.rb
hamlit-2.15.0 lib/hamlit/filters/coffee.rb