Class: Grass::Render::Script

Inherits:
Object
  • Object
show all
Includes:
Renderer
Defined in:
lib/grass/render/script.rb

Constant Summary collapse

JS =
Uglifier.new

Instance Method Summary collapse

Methods included from Renderer

#initialize, #templates

Methods included from Helpers::RenderHelper

#include_partial, #render_content, #render_partial

Instance Method Details

#compress(source) ⇒ Object



17
18
19
# File 'lib/grass/render/script.rb', line 17

def compress source
  compressor.compress(source)
end

#compressorObject



21
22
23
# File 'lib/grass/render/script.rb', line 21

def compressor
  JS
end

#renderObject



13
14
15
# File 'lib/grass/render/script.rb', line 13

def render 
  compress(super)
end