Class: Sinatra::AssetPack::JsminEngine

Inherits:
Engine
  • Object
show all
Defined in:
lib/sinatra/assetpack/engines/jsmin.rb

Instance Method Summary collapse

Methods inherited from Engine

#sys

Instance Method Details

#js(str, options = {}) ⇒ Object



3
4
5
6
# File 'lib/sinatra/assetpack/engines/jsmin.rb', line 3

def js(str, options={})
  require 'jsmin'
  JSMin.minify str
end