Module: HtmlPress
- Defined in:
- lib/html_press.rb,
lib/html_press/html.rb,
lib/html_press/version.rb,
lib/html_press/uglifier.rb,
lib/html_press/css_press.rb,
lib/html_press/html_entities.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.7.2"
Class Method Summary collapse
-
.compress(text, options = {}) ⇒ Object
for backward compatibility.
- .entities_compressor(text) ⇒ Object
- .press(text, options = {}) ⇒ Object
Class Method Details
.compress(text, options = {}) ⇒ Object
for backward compatibility
13 14 15 |
# File 'lib/html_press.rb', line 13 def self.compress(text, = {}) HtmlPress::Html.new().press text end |
.entities_compressor(text) ⇒ Object
34 35 36 |
# File 'lib/html_press/html_entities.rb', line 34 def self.entities_compressor (text) Entities.new.minify(text) end |
.press(text, options = {}) ⇒ Object
8 9 10 |
# File 'lib/html_press.rb', line 8 def self.press(text, = {}) HtmlPress::Html.new().press text end |