fix issue with in-template sass filters

This commit is contained in:
Thomas Reynolds 2011-05-12 12:18:17 -07:00
parent baef07f7cf
commit c38d542a4a

View file

@ -38,6 +38,8 @@ end
class Tilt::SassPlusCSSFilenameTemplate < Tilt::SassTemplate class Tilt::SassPlusCSSFilenameTemplate < Tilt::SassTemplate
def sass_options def sass_options
return super if basename.nil?
location_of_sass_file = Middleman::Server.environment == :build ? location_of_sass_file = Middleman::Server.environment == :build ?
File.join(Middleman::Server.root, Middleman::Server.build_dir) : File.join(Middleman::Server.root, Middleman::Server.build_dir) :
Middleman::Server.public Middleman::Server.public