# File lib/staticmatic/mixins/render.rb, line 76
  def generate_css(source, source_dir = '')
    full_file_path = File.join(@src_dir, 'stylesheets', source_dir, "#{source}.sass")
    begin
      sass_options = { :load_paths => [ File.join(@src_dir, 'stylesheets') ] }.merge(self.configuration.sass_options)
      stylesheet = Sass::Engine.new(File.read(full_file_path), sass_options)
      stylesheet.to_css
    rescue Exception => e
      render_rescue_from_error(StaticMatic::TemplateError.new(full_file_path, e))
    end
  end