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