Sha256: 01030c74d3a2c62cd02dfac597b5a566c345ec044c43af15e42af1a551db8016
Contents?: true
Size: 464 Bytes
Versions: 2
Compression:
Stored size: 464 Bytes
Contents
# encoding: utf-8 module Nanoc::Filters # @since 3.3.0 class CoffeeScript < Nanoc::Filter requires 'coffee-script' # 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nanoc-3.8.0 | lib/nanoc/filters/coffeescript.rb |
nanoc-3.7.5 | lib/nanoc/filters/coffeescript.rb |