Class: Sinatra::AssetPack::UglifyEngine

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

Instance Method Summary collapse

Methods inherited from Engine

#sys

Instance Method Details

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



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

def js(str, options={})
  require 'uglifier'
  Uglifier.compile str, options
rescue => e
  nil
end