Class: Opulent::Filters::Scss

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



123
124
125
# File 'lib/opulent/filters.rb', line 123

def gem_name
  'sass'
end

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



117
118
119
120
121
# File 'lib/opulent/filters.rb', line 117

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

  ::Sass.compile code, options
end