Optimise html using google html compressor
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
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>”