Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Optimise html using google html compressor
branch: master

This branch is 4 commits behind completelynovel:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
README.rdoc
Rakefile
html_compressor.gemspec
init.rb

README.rdoc

Ruby wrapper for HTML Compressor

Installation:

gem install html_compressor

Usage

require 'html_compressor'

compressor = HtmlCompressor::HtmlCompressor.new
compressor.compress(<<-END_HTML)
<html>     
 <head>
 </head>
 <body>
 fdgdfgf

 </body>
</html>  
END_HTML

Output “<html><head></head><body>fdgdfgf</body></html>”

Something went wrong with that request. Please try again.