Sha256: 82ae7de45ceb23bd5d95f3e9ebe1568893ee14a51a0db17f1f9bec8c33f5741e

Contents?: true

Size: 347 Bytes

Versions: 8

Compression:

Stored size: 347 Bytes

Contents

module Octopress
  module AssetPipeline
    class Coffeescript < Javascript
      def compile
        ::CoffeeScript.compile(file.content)
      end

      def path
        Pathname.new File.join(Octopress.site.source, file.path)
      end

      def destination
        File.join(base, filename.sub(/\.coffee/,'.js'))
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
octopress-asset-pipeline-2.0.0 lib/octopress-asset-pipeline/assets/coffeescript.rb
octopress-asset-pipeline-1.1.7 lib/octopress-asset-pipeline/assets/coffeescript.rb
octopress-asset-pipeline-1.1.6 lib/octopress-asset-pipeline/assets/coffeescript.rb
octopress-asset-pipeline-1.1.5 lib/octopress-asset-pipeline/assets/coffeescript.rb
octopress-asset-pipeline-1.1.4 lib/octopress-asset-pipeline/assets/coffeescript.rb
octopress-asset-pipeline-1.1.3 lib/octopress-asset-pipeline/assets/coffeescript.rb
octopress-asset-pipeline-1.1.2 lib/octopress-asset-pipeline/assets/coffeescript.rb
octopress-asset-pipeline-1.1.1 lib/octopress-asset-pipeline/assets/coffeescript.rb