Sha256: c7a3d1486073bdacbc81daf8430171122243cf498d695360ae63db191564c5bf

Contents?: true

Size: 403 Bytes

Versions: 3

Compression:

Stored size: 403 Bytes

Contents

module Octopress
  module Ink
    module LocalAssets
      class Coffeescript < LocalAssets::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
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
octopress-asset-pipeline-1.1.0 lib/octopress-asset-pipeline/assets/coffeescript.rb
octopress-asset-pipeline-1.0.4 lib/octopress-asset-pipeline/assets/coffeescript.rb
octopress-asset-pipeline-1.0.3 lib/octopress-asset-pipeline/assets/coffeescript.rb