Module: HTML5small
- Defined in:
- lib/html5small.rb,
lib/html5small/nanoc.rb,
lib/html5small/minifier.rb,
lib/html5small/optional_tags.rb
Defined Under Namespace
Modules: OptionalTags Classes: Minifier, NanocFilter
Class Method Summary collapse
Class Method Details
.minify(html) ⇒ Object
5 6 7 8 9 |
# File 'lib/html5small.rb', line 5 def self.minify html minifier = Minifier.new Nokogiri::HTML::SAX::Parser.new(minifier).parse(html) (OptionalTags.remove minifier.buf).strip end |