Skip to content

Commit

Permalink
better pass on the whole site object
Browse files Browse the repository at this point in the history
  • Loading branch information
tcurdt committed May 12, 2011
1 parent cae4407 commit 15a243c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/awestruct/sassable.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'sass'

require 'compass'
require 'uri'

module Awestruct
module Sassable
Expand All @@ -14,7 +13,7 @@ def render(context)
end
sass_opts[:load_paths] << File.dirname( self.source_path )
sass_opts[:syntax] = syntax()
sass_opts[:custom] = URI.parse(site.base_url).path
sass_opts[:custom] = site
sass_engine = Sass::Engine.new( raw_page_content, sass_opts )
sass_engine.render
end
Expand Down

0 comments on commit 15a243c

Please sign in to comment.