Sha256: 31cf9a9e8a8179e8ab1d1eb7e87ca2b2484e95ba7fa41b9960b7c54959420fdc

Contents?: true

Size: 520 Bytes

Versions: 8

Compression:

Stored size: 520 Bytes

Contents

module Octopress
  module AssetPipeline
    class Sass < Css
      def ext
        file.ext
      end

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

      def destination
        super.sub(/\.s[ca]ss$/, '.css')
      end

      def add
        Ink::Plugins.static_files << Ink::StaticFileContent.new(compile, destination)
      end

      def data
        file.data
      end

      def compile
        Ink::PluginAssetPipeline.compile_sass(self)
      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/sass.rb
octopress-asset-pipeline-1.1.7 lib/octopress-asset-pipeline/assets/sass.rb
octopress-asset-pipeline-1.1.6 lib/octopress-asset-pipeline/assets/sass.rb
octopress-asset-pipeline-1.1.5 lib/octopress-asset-pipeline/assets/sass.rb
octopress-asset-pipeline-1.1.4 lib/octopress-asset-pipeline/assets/sass.rb
octopress-asset-pipeline-1.1.3 lib/octopress-asset-pipeline/assets/sass.rb
octopress-asset-pipeline-1.1.2 lib/octopress-asset-pipeline/assets/sass.rb
octopress-asset-pipeline-1.1.1 lib/octopress-asset-pipeline/assets/sass.rb