Class: Nutils::Filters::SprocketWheel
- Inherits:
-
Nanoc3::Filter
- Object
- Nanoc3::Filter
- Nutils::Filters::SprocketWheel
- Defined in:
- lib/nutils/filters/sprockets.rb
Overview
Note:
Requires «sprockets»
Instance Method Summary collapse
-
#run(content, params = {}) ⇒ String
Concatenate the Javascript, CoffeeScript or Sass content through [Sprockets](getsprockets.org).
Instance Method Details
#run(content, params = {}) ⇒ String
Concatenate the Javascript, CoffeeScript or Sass content through [Sprockets](getsprockets.org). This method takes no options.
18 19 20 21 |
# File 'lib/nutils/filters/sprockets.rb', line 18 def run(content, params={}) require 'sprockets' Gem.loaded_specs['sprockets'].version < Gem::Version.create('2.0') ? backwards(content, params) : default(content, params) end |