lib/plate/sass_template.rb in plate-0.5.2 vs lib/plate/sass_template.rb in plate-0.5.3
- old
+ new
@@ -23,17 +23,17 @@
def evaluate(scope, locals, &block)
options = {
:filename => eval_file,
:line => line,
- :syntax => syntax
+ :syntax => syntax,
+ :style => :expanded,
+ :load_paths => [ scope.pathname ]
}
- locals ||= {}
-
- if locals[:site] and locals[:site].cache_location
- options[:cache_location] = File.join(locals[:site].cache_location, 'sass-cache')
- end
+ if scope.site.cache_location
+ options[:cache_location] = File.join(scope.site.cache_location, 'sass-cache')
+ end
::Sass::Engine.new(data, options).render
end
end
end
\ No newline at end of file