HTML5small is a general-purpose minifier for HTML5 documents.
It is faster than html_compressor and at the same time compresses much better, while still generating valid HTML5.
$ gem install html5small
require 'html5small' ::HTML5.minify '<html>...</html>'
As a nanoc filter
To use the HTML5small filter, add this line to your
Then adapt your
Rules to apply the filter where necessary. For example:
compile '/blog/*/' do filter :erb filter :html5small end