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