Class: Grass::Render::Script
- Inherits:
-
Object
- Object
- Grass::Render::Script
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
#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
|
#compressor ⇒ Object
21
22
23
|
# File 'lib/grass/render/script.rb', line 21
def compressor
JS
end
|
#render ⇒ Object
13
14
15
|
# File 'lib/grass/render/script.rb', line 13
def render
compress(super)
end
|