Sha256: e7d33cc011438f3968c45349e3541c0de54dd05ab9bd0f862f3290f6e1288221

Contents?: true

Size: 758 Bytes

Versions: 6

Compression:

Stored size: 758 Bytes

Contents

module Octopress
  module AssetPipeline
    class Sass < Css
      attr_reader :render

      def ext
        file_object.ext
      end

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

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

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

      def data
        file_object.data
      end

      def content
        @render ||= begin
          contents = super
          if asset_payload = payload
            Liquid::Template.parse(contents).render!(payload)
          else
            contents
          end
        end

        Ink::PluginAssetPipeline.compile_sass(self)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
octopress-asset-pipeline-2.0.6 lib/octopress-asset-pipeline/assets/sass.rb
octopress-asset-pipeline-2.0.5 lib/octopress-asset-pipeline/assets/sass.rb
octopress-asset-pipeline-2.0.4 lib/octopress-asset-pipeline/assets/sass.rb
octopress-asset-pipeline-2.0.3 lib/octopress-asset-pipeline/assets/sass.rb
octopress-asset-pipeline-2.0.2 lib/octopress-asset-pipeline/assets/sass.rb
octopress-asset-pipeline-2.0.1 lib/octopress-asset-pipeline/assets/sass.rb