Class: Opulent::Filters::Sass

Inherits:
Filter
  • Object
show all
Defined in:
lib/opulent/filters.rb

Instance Attribute Summary

Attributes inherited from Filter

#loaded, #name, #options

Instance Method Summary collapse

Methods inherited from Filter

#initialize, #install_error, #load_filter

Constructor Details

This class inherits a constructor from Opulent::Filters::Filter

Instance Method Details

#gem_nameObject



142
143
144
# File 'lib/opulent/filters.rb', line 142

def gem_name
  'sass'
end

#render(code, options = {}) ⇒ Object



135
136
137
138
139
140
# File 'lib/opulent/filters.rb', line 135

def render(code, options = {})
  options[:syntax] = :sass
  options[:style] ||= :expanded

  ::Sass.compile code, options
end