Sha256: 75b8136c71a7ca6616ac0a870f6d4fe8aa23aaaaaa23b5589f1ae0a20d6cda77

Contents?: true

Size: 411 Bytes

Versions: 14

Compression:

Stored size: 411 Bytes

Contents

# frozen_string_literal: true
module Hamlit
  class Filters
    class Coffee < TiltBase
      def compile(node)
        require 'tilt/coffee' if explicit_require?
        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

14 entries across 14 versions & 1 rubygems

Version Path
hamlit-2.8.7 lib/hamlit/filters/coffee.rb
hamlit-2.8.6 lib/hamlit/filters/coffee.rb
hamlit-2.8.5 lib/hamlit/filters/coffee.rb
hamlit-2.8.4 lib/hamlit/filters/coffee.rb
hamlit-2.8.3 lib/hamlit/filters/coffee.rb
hamlit-2.8.2 lib/hamlit/filters/coffee.rb
hamlit-2.8.1 lib/hamlit/filters/coffee.rb
hamlit-2.8.0 lib/hamlit/filters/coffee.rb
hamlit-2.7.5 lib/hamlit/filters/coffee.rb
hamlit-2.7.3 lib/hamlit/filters/coffee.rb
hamlit-2.7.2 lib/hamlit/filters/coffee.rb
hamlit-2.7.1 lib/hamlit/filters/coffee.rb
hamlit-2.7.0 lib/hamlit/filters/coffee.rb
hamlit-2.6.2 lib/hamlit/filters/coffee.rb