Sha256: ec9c390935d57cf2083cfdde917db42a99d7190652c97790a840c8025beacb8a

Contents?: true

Size: 429 Bytes

Versions: 1

Compression:

Stored size: 429 Bytes

Contents

module Jekyll
  module Converters
    class CoffeeScript < Converter
      safe true
      priority :low

      def setup
        require "coffee-script"
        @setup = true
      end

      def matches(ext)
        ext.downcase == ".coffee"
      end

      def output_ext(ext)
        ".js"
      end

      def convert(content)
        setup unless @setup
        ::CoffeeScript.compile(content)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-coffeescript-1.0.2 lib/jekyll/converters/coffeescript.rb