From c38d542a4a19c6f397198770e51c82518ec325eb Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Thu, 12 May 2011 12:18:17 -0700 Subject: [PATCH] fix issue with in-template sass filters --- lib/middleman/renderers/sass.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/middleman/renderers/sass.rb b/lib/middleman/renderers/sass.rb index 75e40956..4d183948 100644 --- a/lib/middleman/renderers/sass.rb +++ b/lib/middleman/renderers/sass.rb @@ -38,6 +38,8 @@ end class Tilt::SassPlusCSSFilenameTemplate < Tilt::SassTemplate def sass_options + return super if basename.nil? + location_of_sass_file = Middleman::Server.environment == :build ? File.join(Middleman::Server.root, Middleman::Server.build_dir) : Middleman::Server.public