Class: Opulent::Filters::CoffeeScript

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



89
90
91
# File 'lib/opulent/filters.rb', line 89

def gem_name
  'coffee-script'
end

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



85
86
87
# File 'lib/opulent/filters.rb', line 85

def render(code, options = {})
  ::CoffeeScript.compile code, options
end