Class: Tilt::SassPlusCSSFilenameTemplate

Inherits:
SassTemplate
  • Object
show all
Defined in:
lib/middleman/renderers/sass.rb

Direct Known Subclasses

ScssPlusCSSFilenameTemplate

Instance Method Summary collapse

Instance Method Details

#sass_optionsObject



41
42
43
44
45
46
47
48
49
50
# File 'lib/middleman/renderers/sass.rb', line 41

def sass_options
  location_of_sass_file = Middleman::Server.environment == :build ?
                            File.join(Middleman::Server.root, Middleman::Server.build_dir) :
                            Middleman::Server.public

  parts = basename.split('.')
  parts.pop
  css_filename = File.join(location_of_sass_file, Middleman::Server.css_dir, parts.join("."))
  super.merge(::Compass.configuration.to_sass_engine_options).merge(:css_filename => css_filename)
end