Skip to content

completelynovel/html_compressor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>”

About

Optimise html using google html compressor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages