Parent

Methods

Class/Module Index [+]

Quicksearch

Nanoc::Filters::CoffeeScript

@since 3.3.0

Public Instance Methods

run(content, params = {}) click to toggle source

Runs the content through [CoffeeScript](coffeescript.org/). This method takes no options.

@param [String] content The CoffeeScript content to turn into JavaScript

@return [String] The resulting JavaScript

# File lib/nanoc/filters/coffeescript.rb, line 14
def run(content, params = {})
  ::CoffeeScript.compile(content)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.