Sha256: ddc5c3d8a90160a277e18962a6ecba297caa4af9cfa922a93b1b5b0813b57944

Contents?: true

Size: 443 Bytes

Versions: 15

Compression:

Stored size: 443 Bytes

Contents

require 'coffee-script'

module Nanoc::Filters

  # @since 3.3.0
  class CoffeeScript < Nanoc::Filter

    # Runs the content through [CoffeeScript](http://coffeescript.org/).
    # This method takes no options.
    #
    # @param [String] content The CoffeeScript content to turn into JavaScript
    #
    # @return [String] The resulting JavaScript
    def run(content, params = {})
      ::CoffeeScript.compile(content)
    end

  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
nanoc-3.5.0 lib/nanoc/filters/coffeescript.rb
nanoc-3.5.0b2 lib/nanoc/filters/coffeescript.rb
nanoc-3.5.0b1 lib/nanoc/filters/coffeescript.rb
nanoc-3.4.3 lib/nanoc/filters/coffeescript.rb
nanoc-3.4.2 lib/nanoc/filters/coffeescript.rb
nanoc-3.4.1 lib/nanoc/filters/coffeescript.rb
nanoc-3.4.0 lib/nanoc/filters/coffeescript.rb
nanoc-3.3.7 lib/nanoc/filters/coffeescript.rb
nanoc-3.3.6 lib/nanoc/filters/coffeescript.rb
nanoc-3.3.5 lib/nanoc/filters/coffeescript.rb
nanoc-3.3.4 lib/nanoc/filters/coffeescript.rb
nanoc-3.3.3 lib/nanoc/filters/coffeescript.rb
nanoc-3.3.2 lib/nanoc/filters/coffeescript.rb
nanoc-3.3.1 lib/nanoc/filters/coffeescript.rb
nanoc-3.3.0 lib/nanoc/filters/coffeescript.rb