Sha256: c3ecc081ddc8fae2803c01a2984f4c8c9e0a37e670e0873d59337af0fe0da12d

Contents?: true

Size: 491 Bytes

Versions: 4

Compression:

Stored size: 491 Bytes

Contents

require 'sass'

require 'compass'

module Awestruct
  module Sassable

    def render(context)
      sass_opts = {
        :load_paths => [
          File.dirname( self.source_path ),
          Compass::Frameworks['compass'].stylesheets_directory,
          Compass::Frameworks['blueprint'].stylesheets_directory,
        ],
      }
      sass_engine = Sass::Engine.new( raw_page_content, sass_opts )
      sass_engine.render
    end

    def output_extension
      'css'
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
awestruct-0.0.4 lib/awestruct/sassable.rb
awestruct-0.0.3 lib/awestruct/sassable.rb
awestruct-0.0.2 lib/awestruct/sassable.rb
awestruct-0.0.1 lib/awestruct/sassable.rb