From 8eaacb799994d442772a4372bfc6a7856eb63e7d Mon Sep 17 00:00:00 2001 From: nex3 Date: Thu, 1 Mar 2007 05:06:54 +0000 Subject: [PATCH] Clarifying a local/class variable ambiguity. git-svn-id: svn://hamptoncatlin.com/haml/trunk@383 7063305b-7217-0410-af8c-cdc13e5119b9 --- lib/sass/plugin.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/sass/plugin.rb b/lib/sass/plugin.rb index 2b3425dc..97e0628d 100644 --- a/lib/sass/plugin.rb +++ b/lib/sass/plugin.rb @@ -45,9 +45,9 @@ module Sass File.delete(css) if File.exists?(css) filename = template_filename(name) - options = @@options.dup - options[:filename] = filename - engine = Engine.new(File.read(filename), options) + l_options = @@options.dup + l_options[:filename] = filename + engine = Engine.new(File.read(filename), l_options) begin result = engine.render rescue Exception => e @@ -78,7 +78,7 @@ module Sass end end - Dir.mkdir(options[:css_location]) unless File.exist?(options[:css_location]) + Dir.mkdir(l_options[:css_location]) unless File.exist?(l_options[:css_location]) File.open(css, 'w') do |file| file.print(result) end